The School of Haskell is a service providing interactive Haskell tutorials and documentation.
Run ./dev-scripts/setup-environment.sh
to install the correct GHC and GHCJS.
Note that GHCJS is currently installed from source, and will take quite a while
to compile and boot.
Installation requires stack stack 0.1.6 or newer.
To build the serverside code: stack build
To build the client code and CSS: ./dev-scripts/build-client.sh
/dev-scripts/run-demo.sh
will run soh-runner
and open up a browser window
with the demo. The web snippets in the demo requires yesod
and
yesod-media-simple
. Install these with stack build yesod-media-simple
in
order for the web snippets to compile.
I like to rebuild the client whenever any files change. This is what
dev-scripts/client-file-watch.sh
does. It requires the
entr file watcher program, which can be installed
with sudo apt-get install entr
.
If you just change the lucius file, you can run ./dev-scripts/generate-css.sh
to regenerate the CSS. dev-scripts/css-file-watch.sh
is similar to
client-file-watch, but it only rebuilds the CSS.