Yogurt-0.2: A MUD client librarySource codeContentsIndex
Network.Yogurt.Engine
Synopsis
connect :: String -> Int -> Mud () -> IO ()
type Environment = (Output, MVar MudState)
type Output = Destination -> String -> IO ()
runMud :: Environment -> Mud a -> IO a
Documentation
connect :: String -> Int -> Mud () -> IO ()Source
connect hostname port program connects to a MUD and executes the specified program. Input is read from stdin, and output is written to stdout.
type Environment = (Output, MVar MudState)Source
Used by runMud to output messages and update the state during execution.
type Output = Destination -> String -> IO ()Source
Provides a way to output messages.
runMud :: Environment -> Mud a -> IO aSource
Runs a Mud computation, executes the results (such as sending messages to the screen or the MUD) and returns the computation's result. The MVar is updated.
Produced by Haddock version 2.3.0