From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: ob-haskell evaluation needs inf-haskell but it does not exist Date: Wed, 15 Nov 2017 10:35:30 -0500 Message-ID: <87fu9fy2pp.fsf@alphaville.usersys.redhat.com> References: <87bmk6uqty.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEzj9-0006QP-4e for emacs-orgmode@gnu.org; Wed, 15 Nov 2017 10:35:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEzj5-0000ni-2c for emacs-orgmode@gnu.org; Wed, 15 Nov 2017 10:35:47 -0500 Received: from [195.159.176.226] (port=42311 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEzj4-0000lg-SI for emacs-orgmode@gnu.org; Wed, 15 Nov 2017 10:35:43 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eEzir-0000SK-T7 for emacs-orgmode@gnu.org; Wed, 15 Nov 2017 16:35:29 +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" To: emacs-orgmode@gnu.org "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]                 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 wrote: > > I required `(require 'inf-haskell)` But have not found the command `inf-haskell` to start inferior process. > > [stardiviner]                 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 wrote: > > stardiviner 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