pfcuttle / twentyfour-2013

Compilation of Oliver Charles' Twenty Four days of Hackage, 2013 edition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twenty Four Days of Hackage, 2013 edition

This combines (nearly) every sample from Oliver Charles' Twenty Four days of Haskell into an easily compilable repository.

Building

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:

Linear

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.

Scotty

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.

SBV

  • 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).

Heist

Please run from src/heist if you want to render the included templates.

Repa

Please run from src/repa if you want to snowflake ocharles' picture.

Doctest

Run cabal configure --enable-tests before doing cabal build, then run cabal test from this project's root directory.

Problematic examples

[ ] Gloss conflicts with Linear because of incompatible OpenGL dependencies.

About

Compilation of Oliver Charles' Twenty Four days of Hackage, 2013 edition

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%