From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: Babel Haskell mode [8.0.3 (8.0.3-30-g56b864-elpa @ /Users/ix/.emacs.d/elpa/org-20130610/)] Date: Mon, 10 Jun 2013 16:53:53 -0600 Message-ID: <87txl5h91a.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmAz6-00018n-3w for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 18:54:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmAz4-0003lf-RO for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 18:54:43 -0400 Received: from mail-pb0-x22c.google.com ([2607:f8b0:400e:c01::22c]:35685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmAz4-0003lT-Ki for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 18:54:42 -0400 Received: by mail-pb0-f44.google.com with SMTP id uo1so3022943pbc.17 for ; Mon, 10 Jun 2013 15:54:41 -0700 (PDT) In-Reply-To: (Simon Beaumont's message of "Mon, 10 Jun 2013 21:07:41 +0100") 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: Simon Beaumont Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Simon Beaumont writes: > Whenever I try and evaluate the Haskell code block I get: > "Code block returned no value." > > #+begin_src haskell :results value > let fac n = product [1..n] > [(x,fac x) | x <- [0..11]] > #+end_src > > #+results: > I can't reproduce this problem. With a minimal emacs config started with -Q, and loading the attached init.el file (you'll have to update the paths to work with your system). --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=init.el Content-Transfer-Encoding: quoted-printable (add-to-list 'load-path "~/.emacs.d/src/haskell-mode-2.4") (add-to-list 'load-path "~/src/org-mode/lisp") (require 'org) (setq org-export-babel-evaluate t org-confirm-babel-evaluate nil) (org-babel-do-load-languages 'org-babel-load-languages '((haskell . t))) --=-=-= Content-Type: text/plain I'm able to execute the following Org-mode file returning a table of results as expected (although I have to execute it twice, presumably to clear out some cruft at the beginning of the haskell session). --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=haskell.org #+begin_src haskell let fac n = product [1..n] [(x,fac x) | x <- [0..11]] #+end_src --=-=-= Content-Type: text/plain I'm using $ emacs --version GNU Emacs 24.3.1 Copyright (C) 2013 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.6.3 Org-mode version 8.0.3 (release_8.0.3-215-g8e1e6f @ /home/eschulte/src/org-mode/lisp/) -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--