emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Haskell source blocks?
Date: Wed, 22 Jun 2016 15:02:41 -0400	[thread overview]
Message-ID: <CAFAhFSUByKQ=qoewwi5Q9ULMGhfZR_548223xb9M5AJQJW4R4g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 871 bytes --]

             reply	other threads:[~2016-06-22 19:02 UTC|newest]

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

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='CAFAhFSUByKQ=qoewwi5Q9ULMGhfZR_548223xb9M5AJQJW4R4g@mail.gmail.com' \
    --to=borgauf@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).