@hackage / gore-and-ash-actor

Gore&Ash engine extension that implements actor style of programming

Latest1.2.2.0

About

Metadata

  • Last updated , by NCrashed
  • License BSD-3-Clause
  • Categories Game Development
  • Maintained by: ncrashed@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

gore-and-ash-actor

The module provides API for actor based style of programming for Gore&Ash engine.

Installing

Add following to your stack.yml to packages section:

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

When defining you application stack, add ActorT:

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

And derive ActorMonad for your resulting AppMonad:

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