Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript Haskell CSS Shell
branch: master
Failed to load latest commit information.
scripts Document more
src Declare and locate run-time data files using Cabal
static Update jquery console
.dir-locals.el Add DevelMain support
.ghci Add ghci in sandbox example
.gitignore
Imports.hs Remove conflicting import
LICENSE First commit
README.md Add stackage/hsenv help
Setup.hs First commit
cabal.config-7.8.3 cabal.config-7.8.3
tryhaskell.cabal Bump to use lucid 2.6

README.md

tryhaskell

Try Haskell at tryhaskell.org!

Hacking

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
Something went wrong with that request. Please try again.