Skip to content

Instantly share code, notes, and snippets.

@benkolera
Last active February 22, 2019 15:17
Show Gist options
  • Save benkolera/9719910 to your computer and use it in GitHub Desktop.
Save benkolera/9719910 to your computer and use it in GitHub Desktop.
Installing GHC 7.8 on centos6 + EPEL 7.8

Installation instructions

Base packages

Installed from this base centos package list: https://gist.github.com/casr/235395cdcb23c00ad409

(Had epel & build tools already installed.)

Install GHC Dependencies

  • ncurses-devel
  • ghc-7.0.3 (from EPEL)
  • Also make sure the box has 2GiB of memory (haddock generation is memory hungry) and at least 10GiB of disk.

GHC 7.0.3

Installed 7.0.3 from EPEL

GHC 7.6

GHC 7.8

cabal-install 1.18

References

Notes for future dev

GHC by default statically links stuff rather than dynamically linking to stuff in the pkg db. It does mean that we could never run ghci on production (probably a good thing) but if we stick with this all we need to deploy is the resulting binary.

You can dynamically link, but then we'd just have to package stuff up in sandboxes anyhow. May only be useful if we had a package with lots of little binaries (thus lots of copies of the libs). Probably not worth it.

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