From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Cowley Subject: Re: Haskell source blocks? Date: Wed, 22 Jun 2016 16:19:03 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFocB-0002by-0q for emacs-orgmode@gnu.org; Wed, 22 Jun 2016 16:19:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFoc8-0002ha-BG for emacs-orgmode@gnu.org; Wed, 22 Jun 2016 16:19:10 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:34135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFoc8-0002hB-7D for emacs-orgmode@gnu.org; Wed, 22 Jun 2016 16:19:08 -0400 Received: by mail-qk0-x22f.google.com with SMTP id t127so81279974qkf.1 for ; Wed, 22 Jun 2016 13:19:07 -0700 (PDT) Received: from Sonmi451.home (pool-72-82-171-111.cmdnnj.east.verizon.net. [72.82.171.111]) by smtp.gmail.com with ESMTPSA id s25sm717250qts.48.2016.06.22.13.19.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 13:19:05 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode Mailinglist 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