Skip to content

Instantly share code, notes, and snippets.

@erantapaa
Last active August 18, 2016 00:34
Show Gist options
  • Save erantapaa/646461c6fca9924132759b17d3832cd0 to your computer and use it in GitHub Desktop.
Save erantapaa/646461c6fca9924132759b17d3832cd0 to your computer and use it in GitHub Desktop.
Using stack for interactive ghc sessions

Recipe for installing stack and using it interactively.

  1. Install stack -- https://docs.haskellstack.org/en/stable/README/
  2. Choose a resolver - e.g. lts-6.11
  3. Edit ~/.stack/global-project/stack.yaml and set resolver: to the value selected in step 3.
  4. Run: stack setup

Now when you want to run ghci use:

stack exec ghci

To install a package, e.g. the parsec package, use:

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