emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Simon Beaumont <simon@datalligator.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87txl5h91a.fsf@gmail.com> (raw)
In-Reply-To: <m1fvwprape.fsf@psi.home> (Simon Beaumont's message of "Mon, 10 Jun 2013 21:07:41 +0100")

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

Simon Beaumont <simon@datalligator.com> 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).


[-- Attachment #2: init.el --]
[-- Type: application/emacs-lisp, Size: 286 bytes --]

[-- Attachment #3: Type: text/plain, Size: 206 bytes --]


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).


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: haskell.org --]
[-- Type: text/x-org, Size: 88 bytes --]

#+begin_src haskell
  let fac n = product [1..n]
  [(x,fac x) | x <- [0..11]]
#+end_src

[-- Attachment #5: Type: text/plain, Size: 554 bytes --]


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

  reply	other threads:[~2013-06-10 22:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-10 20:07 Bug: Babel Haskell mode [8.0.3 (8.0.3-30-g56b864-elpa @ /Users/ix/.emacs.d/elpa/org-20130610/)] Simon Beaumont
2013-06-10 22:53 ` Eric Schulte [this message]
2013-06-11 15:15   ` Simon Beaumont
2013-06-13  5:18     ` Eric Schulte
2013-06-13  9:35       ` Simon Beaumont
2013-06-13 13:04         ` Eric Schulte

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=87txl5h91a.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=simon@datalligator.com \
    /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).