| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHCi.Server
Synopsis
- type MessageHook = Msg -> IO Msg
- type CustomMessageHandler = Word8 -> ByteString -> IO (Maybe ByteString)
- serv :: Bool -> MessageHook -> Pipe -> (forall a. IO a -> IO a) -> IO ()
- servWithCustom :: Bool -> MessageHook -> Pipe -> (forall a. IO a -> IO a) -> CustomMessageHandler -> IO ()
- defaultServer :: IO ()
- defaultServerWithCustom :: CustomMessageHandler -> IO ()
Documentation
type CustomMessageHandler = Word8 -> ByteString -> IO (Maybe ByteString) Source #
How to interpret the CustomCommand.
servWithCustom :: Bool -> MessageHook -> Pipe -> (forall a. IO a -> IO a) -> CustomMessageHandler -> IO () Source #
defaultServer :: IO () Source #
Default server
defaultServerWithCustom :: CustomMessageHandler -> IO () Source #