SFML-control (hackage):   [Index]  Package maintainers  For package maintainers and hackage trustees  Candidates    This library expose a SFML monad which deliver a higher level of abstraction over the low level bindings.  It exposes a SFML monad you must use and eventually run to go back into IO. In doing that, the SFML monad runs all the destructors for you. This means you don't have to worry about explicit deallocation of the underlying C resources.  To scrap as much boilerplate as possible, TH has been used. In fact, thanks to the TH machinery, the whole SFML functions has been lifted appropriately here:  Conversions  This is a 1:1 translation of this example:  As you can see it's almost a 1:1 translation, you just need to run the monad and get rid of explicit destroy !  We decided that the user shouldn't pay the extra burder of a SFML monad if all he wants is a low level SFML binding.
Keywords: graphics|library|mit