IHaskell icon indicating copy to clipboard operation
IHaskell copied to clipboard

Run more than one version of IHaskell?

Open dabro opened this issue 9 years ago • 3 comments

Is it possible to build and run ihaskell on different GHC versions? eg 7.10.1 and 7.10.3? If you try doing so, each overwrites the other's ihaskell binary in .local/bin. It's easy to save a copy, but the location seems to be hardwired in?

dabro avatar Feb 27 '17 12:02 dabro

The path is “hard-wired” only in ~/.local/share/jupyter/kernels/haskell/kernel.json. It should be possible to make multiple different IHaskell kernels by

$ cp -r ~/.local/share/jupyter/kernels/{haskell,haskell-7.10.1}

and editing that file accordingly in one version.

leftaroundabout avatar Mar 14 '17 15:03 leftaroundabout

With the nix package manager you can also change ghc version without issues with overwrites.

miguel-negrao avatar May 02 '17 15:05 miguel-negrao

It looks like we hardcode kernelName in src/IHaskell/IPython.hs which is the name of the folder that kernel.json is put under. It doesn't look like kernelName is used anywhere else so if anyone wants to make this configurable I would happily accept a pull request.

vaibhavsagar avatar Mar 28 '18 15:03 vaibhavsagar