emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Haskell source blocks?


From: Anthony Cowley
Subject: Re: [O] Haskell source blocks?
Date: Wed, 22 Jun 2016 16:19:03 -0400
User-agent: mu4e 0.9.16; emacs 24.5.2

Lawrence Bottorff writes:

> I'm guessing Haskell and org-mode Babel aren't really a great match? After
> installing haskell-mode, I've tried
>
> #+begin_src haskell
> doubleMe x = x + x
> #+end_src
>
> which isn't working . . . because it isn't allowed in the ghci?
>
> #+begin_src haskell
> let doubleMe x = x + x
> #+end_src
>
> works. However,
>
> #+begin_src haskell
> let doubleSmallNumber4 x = if x > 0
>                             then x
>                              else x*2
> #+end_src
>
> complains of a parsing error on else. How does Haskell work in org mode?
>
> LB

I use IHaskell with ob-ipython. It does what you want from babel and even makes 
in-line figure generation relatively painless.

Anthony



reply via email to

[Prev in Thread] Current Thread [Next in Thread]