logo
首页技术栈工具库讨论
SFML-control

SFML-control

[Index] For package maintainers and hackage trustees 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.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install SFML-control
查看
标签
根据用户添加的标签生成
暂无标签