Master Thesis on programming game systems in Haskell.