jonascarpay / apecs

a fast, extensible, type driven Haskell ECS framework for games
392 stars 43 forks source link

Add MonadUnliftIO instance for SystemT #123

Closed jship closed 10 months ago

jship commented 10 months ago

Adds a newtype-derived MonadUnliftIO instance for SystemT so that systems can more conveniently use functions that are in callback style, e.g. alloca.

jonascarpay commented 10 months ago

I think this is another argument in favor of SystemT just being an alias to ReaderT. Together with restructuring/renaming Experimental, maybe it's time to put together a wish list for v0.10