gore-and-ash-async

Core module for Gore&Ash engine that embeds async IO actions into game loop. https://github.com/TeaspotStudio/gore-and-ash-async#readme

Latest on Hackage:1.1.1.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Anton Gushcha
Maintained by ncrashed@gmail.com

gore-and-ash-async

The module provides API for embedding concurrent IO actions into main game loop for Gore&Ash engine.

Installing

Add following to your stack.yml to packages section:

- location:
    git: https://github.com/Teaspot-Studio/gore-and-ash-async.git
    commit: <PLACE HERE FULL HASH OF LAST COMMIT> 

When defining you application stack, add AsyncT:

type AppStack = ModuleStack [AsyncT, ... other modules ... ] IO

And derive MonadAsync for your resulting AppMonad:

newtype AppMonad a = AppMonad (AppStack a)
  deriving (Functor, Applicative, Monad, MonadFix, MonadIO, MonadThrow, MonadCatch, MonadAsync)

Changes

1.1.1.0

  • Add changelog and update stack.yaml, add extra-source-files to cabal file.
comments powered byDisqus