Portability | RecordWildCards |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Safe Haskell | None |
Internal types for connecting to the Raspberry-PI version of MineCraft. Most users are expected to use Network.MineCraft.Pi.Client rather than this module, but it is provided in case the former is not sufficient.
Documentation
type MCPI = ReaderT ConnInfo IOSource
Represent a program that communicates with a MineCraft PI server.
TODO: run a computation without automatically opening and closing the handle.
runMCPI :: MCPI a -> IO aSource
Run a Raspberry-PI program.
An exception is raised if the server is not running, or can not be contacted.
runMCPI' :: Bool -> MCPI a -> IO aSource
Run a Raspberry-PI program. The flag determines whether the
messages sent to, and received from, the server, are
printed to stderr
as a diagnostic.
An exception is raised if the server is not running, or can not be contacted.