RSS
RSS

Reputation: 163

IHaskell Kernel shutting down with ghc installed using Stack

I managed to install IHaskell as a Jupyter Kernel, but when I try to run it, I get the following error:

ihaskell: 
Ran commands: 
ghc-pkg check
which ghc-pkg

Exception: user error (shelly did not find ghc-pkg in the PATH

which is perhaps to be expected since I don't have a global ghc install, but only through stack.

Is there a workaround?

Upvotes: 0

Views: 178

Answers (1)

biozz
biozz

Reputation: 11

You can avoid this error by running jupyter itself through stack:

 stack exec ipython -- notebook

It is described in ihaskell repo and linked guide for Ubuntu 14.04. Both Python and Haskell kernels work this way.

Upvotes: 1

Related Questions