emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anthony Cowley <acowley@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Haskell source blocks?
Date: Wed, 22 Jun 2016 16:19:03 -0400	[thread overview]
Message-ID: <m2inx1j7t4.fsf@Sonmi451.home> (raw)
In-Reply-To: <CAFAhFSUByKQ=qoewwi5Q9ULMGhfZR_548223xb9M5AJQJW4R4g@mail.gmail.com>


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	other threads:[~2016-06-22 20:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-22 19:02 Haskell source blocks? Lawrence Bottorff
2016-06-22 20:19 ` Anthony Cowley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2inx1j7t4.fsf@Sonmi451.home \
    --to=acowley@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).