LambdaHack-0.2.8: A roguelike game engine in early and active development

Safe HaskellNone



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.



type FunActionCli c aSource


 = SessionUI

client UI setup data

-> ConnServer c

this client connection information

-> (State -> StateClient -> a -> IO ())


-> (StdGen -> Msg -> IO ())

failure/reset continuation

-> State

current local state

-> StateClient

current client state

-> IO () 

The type of the function inside any client action.

data ActionCli c a Source

Client parts of actions of human and computer player characters.

executorCli :: ActionCli c () -> SessionUI -> State -> StateClient -> ConnServer c -> IO ()Source

Run an action, with a given session, state and history, in the IO monad.