Have I upgraded my cabal-install?

In my case (and probably others?) cabal is initially installed in /usr/local/bin by homebrew when installing haskell-platform. When upgrading cabal, the version is installed to $HOME/.cabal/bin/cabal. You ought to place your cabal bins higher in your $PATH, like so: export PATH=$HOME/.cabal/bin:$PATH

Haskell Stack install package dependency from github

For stack <1.11: The documentation for the stack.yaml packages section gives examples of referring to more complex package locations. packages: – location: . – location: dir1/dir2 – location: https://example.com/foo/bar/baz-0.0.2.tar.gz – location: http://github.com/yesodweb/wai/archive/2f8a8e1b771829f4a8a77c0111352ce45a14c30f.zip – location: git: git@github.com:commercialhaskell/stack.git commit: 6a86ee32e5b869a877151f74064572225e1a0398 – location: hg: https://example.com/hg/repo commit: da39a3ee5e6b4b0d3255bfef95601890afd80709 Then add extra-dep: true to the package entry just to tell … Read more

Generating documentation for my own code with Haddock and stack

According to this ticket on the stack issue tracker, Stack can currently only build documentation for libraries, but not executables. Cabal can be configured to work with the stack databases with this command: cabal configure –package-db=clear –package-db=global –package-db=$(stack path –snapshot-pkg-db) –package-db=$(stack path –local-pkg-db) after which you can run cabal haddock –executables to generate the documentation. … Read more