| Copyright | (c) Henry J. Wylde, 2016 |
|---|---|
| License | BSD3 |
| Maintainer | public@hjwylde.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Game.Werewolf.Command
Contents
Description
Command data structures.
- data Command = Command {
- apply :: forall m. (MonadError [Message] m, MonadState Game m, MonadWriter [Message] m) => m ()
- noopCommand :: Command
- validatePlayer :: (MonadError [Message] m, MonadState Game m) => Text -> Text -> m ()
Command
Constructors
| Command | |
Fields
| |
Instances
Validation
validatePlayer :: (MonadError [Message] m, MonadState Game m) => Text -> Text -> m () Source