emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: ob-haskell evaluation needs inf-haskell but it does not exist
Date: Wed, 15 Nov 2017 10:35:30 -0500	[thread overview]
Message-ID: <87fu9fy2pp.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAL1eYu+L3eekUL+fjz3BSrO7gFoP+vAPdcSo=y6Rh_E+46sz9w@mail.gmail.com

"numbchild@gmail.com" <numbchild@gmail.com> writes:

> I checked out your answer, I have meet all your said requirements. GHCi, inf-haskell (after I installed package haskell-mode) and setting `haskell-program-name`, I found there is no
> `defcustom` variable option named `haskell-program-name` at all.

You probably need to set haskell-process-type to ghci. If that works, please let me know and I'll update the answer on SO.

>
> [stardiviner]           <Hack this world!>      GPG key ID: 47C32433
> IRC(freeenode): stardiviner                     Twitter:  @numbchild
> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
> Blog: http://stardiviner.github.io/
>
> On Wed, Nov 15, 2017 at 9:17 PM, numbchild@gmail.com <numbchild@gmail.com> wrote:
>
>     I required `(require 'inf-haskell)` But have not found the command `inf-haskell` to start inferior process.
>    
>     [stardiviner]           <Hack this world!>      GPG key ID: 47C32433
>     IRC(freeenode): stardiviner                     Twitter:  @numbchild
>     Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
>     Blog: http://stardiviner.github.io/
>    
>     On Mon, Nov 13, 2017 at 11:43 PM, Nick Dokos <ndokos@gmail.com> wrote:
>    
>         stardiviner <numbchild@gmail.com> writes:
>        
>         > When I execute the following Haskell src block:
>         >
>         > ```
>         >
>         > #+BEGIN_SRC haskell :session :tangle "Data/Code/hello_world.hs"
>         > main :: IO ()
>         > main = do
>         >   putStrLn "Hello, World!"
>         > #+END_SRC
>         >
>         > ```
>         >
>         > It reports error:
>         >
>         > ```
>         >
>         > Debugger entered--Lisp error: (file-missing "Cannot open load file" "No
>         > such file or directory" "inf-haskell")
>         >   require(inf-haskell)
>        
>         See my answer to this SO question:
>        
>           https://stackoverflow.com/questions/42081379/how-to-set-up-org-babel-for-haskell-with-stack
>        
>         for some details on setting up the environment.
>        
>         --
>         Nick
>

-- 
Nick

  reply	other threads:[~2017-11-15 15:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-12  6:30 ob-haskell evaluation needs inf-haskell but it does not exist stardiviner
2017-11-13 15:43 ` Nick Dokos
2017-11-15 13:17   ` numbchild
2017-11-15 13:19     ` numbchild
2017-11-15 15:35       ` Nick Dokos [this message]
2017-11-17 16:16         ` numbchild

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=87fu9fy2pp.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).