Skip to content
Core module for gore-and-ash for network low-level API
Haskell C Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
examples
src/Game/GoreAndAsh
.gitignore
.travis.yml
CHANGELOG.md
Dockerfile
LICENSE
README.md
Setup.hs
gore-and-ash-network.cabal
gore-and-ash-network.sublime-project
mkdocs
publish
stack.yaml

README.md

gore-and-ash-network

The module provides facilities for basic networking for Gore&Ash engine.

The module depends on gore-and-ash-logging module.

Installing

Add following to your stack.yml to packages section:

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

When defining you application stack, add NetworkT:

type AppStack = ModuleStack [LoggingT, NetworkT, ... other modules ... ] IO

And derive NetworkMonad for your resulting AppMonad:

newtype AppMonad a = AppMonad (AppStack a)
  deriving (Functor, Applicative, Monad, MonadFix, MonadIO, MonadThrow, MonadCatch LoggingMonad, NetworkMonad)
You can’t perform that action at this time.