From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: ob-haskell evaluation needs inf-haskell but it does not exist Date: Wed, 15 Nov 2017 21:19:34 +0800 Message-ID: References: <87bmk6uqty.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113d2f88a0b230055e055c94" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eExby-00023k-LX for emacs-orgmode@gnu.org; Wed, 15 Nov 2017 08:20:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eExbq-0002GD-9q for emacs-orgmode@gnu.org; Wed, 15 Nov 2017 08:20:14 -0500 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:44210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eExbq-0002F5-2T for emacs-orgmode@gnu.org; Wed, 15 Nov 2017 08:20:06 -0500 Received: by mail-oi0-x234.google.com with SMTP id a75so10364046oib.1 for ; Wed, 15 Nov 2017 05:20:06 -0800 (PST) In-Reply-To: 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: Nick Dokos Cc: Org-mode --001a113d2f88a0b230055e055c94 Content-Type: text/plain; charset="UTF-8" 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. [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 >> >> >> > --001a113d2f88a0b230055e055c94 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I checked out your answer, I have meet all your said requi= rements. GHCi, inf-haskell (after I installed package haskell-mode) and set= ting `haskell-program-name`, I found there is no `defcustom` variable optio= n named `haskell-program-name` at all.

[stardiviner]= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this = world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeen= ode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @n= umbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8= E5 47C3 2433
Blog: http://stardiviner.github.io/

On Wed, Nov 15, 2017 at 9:17 PM, numbchild@gmail.com <<= a href=3D"mailto:numbchild@gmail.com" target=3D"_blank">numbchild@gmail.com= > wrote:
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif">I= required `(require 'inf-haskell)` But have not found the command `inf-= haskell` to start inferior process.

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C3= 2433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36= =C2=A0 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&qu= ot;
> main :: IO ()
> main =3D do
> =C2=A0 putStrLn "Hello, World!"
> #+END_SRC
>
> ```
>
> It reports error:
>
> ```
>
> Debugger entered--Lisp error: (file-missing "Cannot open load fil= e" "No
> such file or directory" "inf-haskell")
> =C2=A0 require(inf-haskell)

See my answer to this SO question:

=C2=A0 ht= tps://stackoverflow.com/questions/42081379/how-to-set-up-org-babe= l-for-haskell-with-stack

for some details on setting up the environment.

--
Nick




--001a113d2f88a0b230055e055c94--