Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 69 commits ahead, 17 commits behind tryhaskell:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
src
static
.dir-locals.el
.ghci
.gitignore
Imports.hs
LICENSE
README.md
README_tutorials.md
Setup.hs
bashrc
cabal.config-7.8.3
run_tryhaskell
tryhaskell.cabal

README.md

Haskell Tutorials

Interactive tutorials for @HaskellMOOC, based on Try Haskell tryhaskell.org The main difference is that we refactored the code to make it easier to create many different tutorials each with their own url.

The tutorial sources are in static/js/tutorial{n}.pages.js

The info below is from the tryhaskell README:

Local Installation

Get the Git version of Mueval from here: https://github.com/gwern/mueval It has some additions that tryhaskell needs.

Sandboxes

$ cabal sandbox init
$ cabal install --only-dependencies
$ cabal build
$ cabal sandbox hc-pkg hide monads-tf

Start tryhaskell, hosted at http://127.0.0.1:4001/

$ env PATH=./.cabal-sandbox/bin:$PATH \
  GHC_PACKAGE_PATH=$(cabal sandbox hc-pkg list | grep '^/.*\.cabal-sandbox') \
  ./dist/build/tryhaskell/tryhaskell

tryhaskell does not currently support any command line arguments or configuration files.

Stackage and hsenv

$ hsenv
$ source .hsenv/bin/activate

Set your remote-repo in your .hsenv/cabal/config to

stackage:http://www.stackage.org/stackage/924db6d52b90801aa1aaf7ab5d0686720d5b3964

Then install

$ cabal update
$ cabal install