@hackage / gore-and-ash-lambdacube

Core module for Gore&Ash engine that do something.

Latest0.2.0.0

About

Metadata

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

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    examples (off by default)

    Enable building of examples

Readme

gore-and-ash-lambdacube

The module provides API for something for Gore&Ash engine.

Installing

Add following to your stack.yml to packages section:

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

When defining you application stack, add LambdaCubeT:

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

And derive MonadLambdaCube for your resulting AppMonad:

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

Building examples

The package has several examples, to build them pass examples flag:

stack install --flag gore-and-ash-lambdacube:examples