From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?b?QW5kcsOhcw==?= Major Subject: Re: Bug: Babel: haskell code evaluation inconsistency [7.7 (release_7.7.160.g3e33)] Date: Tue, 23 Aug 2011 08:56:07 +0000 (UTC) Message-ID: References: <20110819223851.GA3315@discus> <87aab2bp2m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvmmW-0006Y6-Bw for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 04:56:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvmmU-0002MV-G2 for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 04:56:24 -0400 Received: from lo.gmane.org ([80.91.229.12]:48923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvmmU-0002MC-AK for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 04:56:22 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QvmmS-00087M-Fm for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:56:20 +0200 Received: from dslb-092-074-177-167.pools.arcor-ip.net ([92.74.177.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2011 10:56:20 +0200 Received: from andras.g.major by dslb-092-074-177-167.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2011 10:56:20 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Eric, > I personally don't have time to make these changes right now, but I'd be > happy to provide guidance and answer questions to anyone who wanted to > try to submit a patch. Also, there are a number of files which can > serve as examples of how to compile and execute code with Babel e.g., > ob-java.el and ob-C.el. That's what I suspected judging from the behaviour I've seen. Is anyone else interested in such work? I don't have much time either, in particular I'm not sufficiently familiar with emacs and Lisp to do something useful quickly. > I would prefer to keep haskell as the source block type if only so that > the blocks are fontified with haskell-mode. However something like an > :engine or :compiler keyword could be used to specify ghc or hugs. Good idea, but specifying ghc is ambiguous: it'll have to be either ghci, runghc/runhaskell, oder hugs, or maybe some other interpreter/compiler someone else would like to use (nhc98, etc., there a quite a few). At least the three options I listed all have incompatibilities in even the simplest use cases, owing to the peculiarities of Haskell as a pure, declarative language. Also, using runghc would require the code block to be tangled first into a temporary file. Is that easily done in babel? AndrĂ¡s