IHaskell Kernel shutting down with ghc installed using Stack

186 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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.