packages feed

gore-and-ash-sdl-2.1.1.0: README.md

gore-and-ash-sdl
================

The module provides integraion with SDL2 library for [Gore&Ash](https://github.com/Teaspot-Studio/gore-and-ash) engine.

Installing
==========

Add following to your `stack.yml` to `packages` section:
```yaml
- location:
    git: https://github.com/Teaspot-Studio/gore-and-ash-sdl.git
    commit: <PLACE HERE FULL HASH OF LAST COMMIT> 
```

When defining you application stack, add `SDLT`:
``` haskell
type AppStack = ModuleStack [SDLT, ... other modules ... ] IO
```

And derive `MonadSDL` for your resulting `AppMonad`:
``` haskell
newtype AppMonad a = AppMonad (AppStack a)
  deriving (Functor, Applicative, Monad, MonadFix, MonadIO, MonadThrow, MonadCatch, MonadSDL)
```