GNU bug report logs -
#40852
Support compilation of Haskell in org mode babel blocks.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40852 in the body.
You can then email your comments to 40852 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40852
; Package
emacs
.
(Sat, 25 Apr 2020 19:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Roland Coeurjoly <rolandcoeurjoly <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 25 Apr 2020 19:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Haskell code can be both compiled (for example with ghc), or interpreted
(with ghci).
Until now, org babel had only support for interpretation.
Haskell is weird in that some code for the interpreter cannot be compiled
and viceversa.
For example, in ghci (the interpreter) you are required to use let to
declare functions
<https://stackoverflow.com/questions/28927716/org-babel-for-haskell-not-works-of-eval-haskell-block/40920873>
.
In this patch I add support for compilation with the header argument
:compile yes.
The function to compile haskell is almost a copy paste of the C funcion in
ob-C.el.
By default I retain the original behavior, i.e. interpreting the block.
I have tested this patch in emacs-27.0.91.
It is my first patch to GNU Emacs and I am a newbie with both elisp and
haskell.
[Message part 2 (text/html, inline)]
[0001-Add-Haskell-specific-header-argument-compile-to-comp.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40852
; Package
emacs
.
(Mon, 27 Apr 2020 18:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 40852 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I forgot to add a function to patch.
+(declare-function org-entry-get "org" (pom property &optional inherit
literal-nil))
Without it it works but emacs spits a warning upon compilation.
[Message part 2 (text/html, inline)]
[0001-Add-Haskell-specific-header-argument-compile-to-comp.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40852
; Package
emacs
.
(Wed, 30 Sep 2020 03:37:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 40852 <at> debbugs.gnu.org (full text, mbox):
Roland Coeurjoly <rolandcoeurjoly <at> gmail.com> writes:
> Haskell code can be both compiled (for example with ghc), or interpreted (with
> ghci).
>
> Until now, org babel had only support for interpretation.
>
> Haskell is weird in that some code for the interpreter cannot be
> compiled and viceversa. For example, in ghci (the interpreter) you
> are required to use let to declare functions.
>
> In this patch I add support for compilation with the header argument
> :compile yes. The function to compile haskell is almost a copy paste
> of the C funcion in ob-C.el.
>
> By default I retain the original behavior, i.e. interpreting the block.
>
> I have tested this patch in emacs-27.0.91.
>
> It is my first patch to GNU Emacs and I am a newbie with both elisp
> and haskell.
There was unfortunately no response to this patch at the time (in April
this year), because, I guess, not that many people have knowledge of
both Org and Haskell. :-/ Me included.
The code looks reasonable to me, but I have no way of testing.
I'm not quite sure who I should direct attention to this patch -- Eric
Schulte, who wrote ob-haskell, doesn't seem to have contributed in a
decade...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40852
; Package
emacs
.
(Mon, 26 Oct 2020 20:19:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 40852 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I figured out a better forum would be the org mode mailing list, so I sent
the patch there and got merged.
https://orgmode.org/list/877dx0cwhz.fsf <at> nicolasgoaziou.fr/
On Wed, Sep 30, 2020 at 5:35 AM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Roland Coeurjoly <rolandcoeurjoly <at> gmail.com> writes:
>
> > Haskell code can be both compiled (for example with ghc), or interpreted
> (with
> > ghci).
> >
> > Until now, org babel had only support for interpretation.
> >
> > Haskell is weird in that some code for the interpreter cannot be
> > compiled and viceversa. For example, in ghci (the interpreter) you
> > are required to use let to declare functions.
> >
> > In this patch I add support for compilation with the header argument
> > :compile yes. The function to compile haskell is almost a copy paste
> > of the C funcion in ob-C.el.
> >
> > By default I retain the original behavior, i.e. interpreting the block.
> >
> > I have tested this patch in emacs-27.0.91.
> >
> > It is my first patch to GNU Emacs and I am a newbie with both elisp
> > and haskell.
>
> There was unfortunately no response to this patch at the time (in April
> this year), because, I guess, not that many people have knowledge of
> both Org and Haskell. :-/ Me included.
>
> The code looks reasonable to me, but I have no way of testing.
>
> I'm not quite sure who I should direct attention to this patch -- Eric
> Schulte, who wrote ob-haskell, doesn't seem to have contributed in a
> decade...
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40852
; Package
emacs
.
(Mon, 26 Oct 2020 20:27:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 40852 <at> debbugs.gnu.org (full text, mbox):
Roland Coeurjoly <rolandcoeurjoly <at> gmail.com> writes:
> I figured out a better forum would be the org mode mailing list, so I
> sent the patch there and got merged.
Great; then I guess we can close the bug report here.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
40852 <at> debbugs.gnu.org and Roland Coeurjoly <rolandcoeurjoly <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 26 Oct 2020 20:27:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 24 Nov 2020 12:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 125 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.