Question

I am following the instructions for installing the snap framework for Haskell:

  http://janrain.com/blog/tutorial-building-a-sample-application-with-haskell-snap-postgresql-and-the-postgresql-simple-snaplet/

When executing

  snap init

I obtain -bash: snap: command not found (on Mac OSX), and I did open a new terminal window after installing snap. The binary is installed in

  /Users/<USER NAME>/Library/Haskell/ghc-7.6.3/lib/snap-0.12.1/bin

and snap also works fine when snap init is prefaced with this path. However, this ticket (for the windows cabal installer)

  http://trac.haskell.org/haskell-platform/ticket/175

suggests that this should not happen. When cabal installs a new package, it should add the correct directories to the path environment. Running set | grep "snap" or set | grep "cabal" returns nothing. Any ideas on how to (automatically) add the correct directory to the PATH environment for future installations?

Was it helpful?

Solution

I realize this was answered in the comments, but it would be nice to mark this question as answered. This question is answered in the FAQ on the Snap website.

http://snapframework.com/faq#why-cant-i-install-snap

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top