Safe Haskell | None |
---|
Game.LambdaHack.Client.Action.ActionType
Description
The main game action monad type implementation. Just as any other
component of the library, this implementation can be substituted.
This module should not be imported anywhere except in Action
to expose the executor to any code using the library.
- data ActionCli c d a
- executorCli :: ActionCli c d () -> SessionUI -> State -> StateClient -> ChanServer c d -> IO ()
Documentation
Server state transformation monad.
Instances
MonadClientWriteServer d (ActionCli c d) | |
MonadClientReadServer c (ActionCli c d) | |
Monad (ActionCli c d) | |
Functor (ActionCli c d) | |
Applicative (ActionCli c d) | |
MonadAction (ActionCli c d) | |
MonadActionRO (ActionCli c d) | |
MonadClientUI (ActionCli c d) | |
MonadClient (ActionCli c d) |
executorCli :: ActionCli c d () -> SessionUI -> State -> StateClient -> ChanServer c d -> IO ()Source
Init the client, then run an action, with a given session,
state and history, in the IO
monad.