Friday, November 18, 2011

Snap: Haskell Web Framework


http://snapframework.com/docs/quickstart
http://snapframework.com/docs/tutorials/snap-api


cabal update
cabal install snap  -- installs into C:\Users\<user>\AppData\Roaming\cabal  (or $HOME/.cabal/) (10mins)
mkdir snapblog
cd snapblog
snap init -- creates .ghci, snapblog.cabal, <src>, <log>, <resources>
cabal install  -- installs executable snap (snapblog.exe) into C:\Users\<user>\AppData\Roaming\cabal\bin  (or $HOME/.cabal/bin)
snapblog -p 8000