Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Emacs org-mode code block problem (Lawrence Bottorff) ---------------------------------------------------------------------- Message: 1 Date: Mon, 27 May 2019 12:49:59 -0500 From: Lawrence Bottorff <borg...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: [Haskell-beginners] Emacs org-mode code block problem Message-ID: <CAFAhFSXFsTUVwQTrOEmxZ_7cC5km=7y507zscw-uy8eafzw...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I've got this in an Emacs org-mode code block: #+begin_src haskell :results output doubleSmallNumber4 x = if x > 0 then x else x * 2 #+end_src but when I try to run it (with C-c C-c) I get ... Prelude> doubleSmallNumber4 x = if x > 0 then x else x * 2 "org-babel-haskell-eoe" <interactive>:19:23: error: parse error (possibly incorrect indentation or mismatched brackets) Prelude> <interactive>:20:11: error: parse error (possibly incorrect indentation or mismatched brackets) Prelude> <interactive>:21:5-8: error: parse error on input ‘then’ Prelude> <interactive>:22:5-8: error: parse error on input ‘else’ Prelude> "org-babel-haskell-eoe" ... I can run #+begin_src haskell tripleMe x = x + x + x #+end_src just fine though -- which means I've done something right with my Emacs init. The REPL started is 8.6.3 stack-ghci. I've formatted with the org-mode C-c ' LB -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20190527/ff306504/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 131, Issue 4 *****************************************