Skip to content

Instantly share code, notes, and snippets.

@mango314
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mango314/4edf404aea1d72fcc879 to your computer and use it in GitHub Desktop.
Save mango314/4edf404aea1d72fcc879 to your computer and use it in GitHub Desktop.
navigating cabal hell for iHaskell

How to Install iHaskell

iHaskell is a notebook similar to iPython notebook. Here's to hoping it will become easier to learn the very complix Haskell language.

you might need Python's virtual environments

I raised many Github issues and StackOverflow questions loudly expressing my grief on installation issues

I will try to find some choice excerpts. In the end, Cabal sandbox allowed me to install IHaskell 0.5.0 with iPython 2 (not iPython 3 aka "Jupyter"). Then...

iHaskell merges 'Jupyter' branch

IHaskell did have support for Jupyter on Github (which is still ahead of Hackage), now it is merged into main.

Prerequisites

Install a recent version of Haskell. In my case, Ubuntu 14.04

GHC is split into 4 packages,

ghc-$VER (core package, contains ghc and executables such as haddock) ghc-$VER-dyn (contains dynamic libraries; dummy package for GHC 7.8 and later) ghc-$VER-prof (contains profiling libs) ghc-$VER-htmldocs (contains generated HTML Haddock output)

The packages install into /opt/ghc/$VER/ so in order to use them, the easiest way is to bring a particular GHC version into scope by placing the respective /opt/ghc/$VER/bin folder early into the PATH environment variable.

Install a recent version of Cabal. In my case, cabal install cabal-install wasn't working properly. the ghc bash command was pointing to version 7.6.3 installed on a different part of my computer. And cabal pointed to an old version too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment