Most existing approaches to writing games in Haskell are quite complicated. Often you have to deal with rather imperative low-level APIs (such as OpenGL) or you need to get your head around a sophisticated FRP library (such as Yampa or reactive-banana). In any case, the actual game-related functionality is usually rather limited (unless you code yourself all the way up from the likes of OpenGL and implement your own physics engine).Read more
In a previous article, we discussed the interactive exploration of network APIs with the Haskell packages
wreq. With the addition of HTML support in playgrounds in Haskell for Mac 1.2.1, we can take this further by adding HTML composition.
A nice property of the Haskell ecosystem is that most code is quite easily portable between OS X and Linux (and often even Windows) — assuming you write a command line or server application. This raises the question of how to build a Haskell for Mac project, such that you can deploy it to machines that do not have a Haskell installation. Due to the Stack tool integration of Haskell for Mac, that is quite simple.Read more
With Haskell for Mac, most program execution during development is that of program fragments in the playground, but at some point, we want to run the whole program. In the case of a command line program, that may involve passing and parsing command line arguments, reading environment variables, and reading and writing input and output.Read more