This combines (nearly) every sample from Oliver Charles' Twenty Four days of Haskell into an easily compilable repository.
To build all the included examples, run:
cabal sandbox init
cabal add-source {various sources}
cabal install --dependencies-only
cabal configure --enable-tests # Optional
cabal build
Binaries will be in dist/{example name}
.
The following examples need manual build or run steps:
- Depends on SDL2
As SDL2 is not on Hackage yet, it is recommended to clone the repository, and
use a sandbox with the cabal sandbox add-source
command.
- Depends on Scotty 0.6.x
Version 0.6 is not released on Hackage yet. You can try building with the latest
version available (0.5.x), but expect errors. It is preferable to clone the
repository, and use a sandbox with the cabal sandbox add-source
command.
Please run from src/scotty
if you want to render the included HTML stub.
- Depends on an external STM solver, by default Z3
- If using Z3, version 4.1 will not work. The example was tested with the Debian x64 unstable binary (4.3.2).
Please run from src/heist
if you want to render the included templates.
Please run from src/repa
if you want to snowflake ocharles' picture.
Run cabal configure --enable-tests
before doing cabal build
, then run cabal test
from this project's root directory.
[ ] Gloss conflicts with Linear because of incompatible OpenGL dependencies.