code with https://leanpub.com/gameinhaskell
I recommend using a sandbox. checkout the repo, and then
cabal sandbox init
cabal install --only-dependencies
cabal build
Showing how to set up a window and draw basic shapes:
cabal run shapes-demo
State in a more traditional way:
cabal run state-demo
State with FRP:
cabal run frp-demo
Using textures and animations, and viewport:
cabal run animated
Let's add some music and sounds:
cabal run music