Safe Haskell | None |
---|---|
Language | Haskell98 |
- initLog :: ServerOpts -> IO (Log, Level -> String -> IO (), ([String] -> IO ()) -> IO (), IO ())
- runServer :: ServerOpts -> (CommandOptions -> IO ()) -> IO ()
- type Server = Worker (ReaderT CommandOptions IO)
- startServer :: ServerOpts -> IO Server
- inServer :: Server -> Command -> IO Result
- withCache :: ServerOpts -> a -> (FilePath -> IO a) -> IO a
- writeCache :: ServerOpts -> (Level -> String -> IO ()) -> Database -> IO ()
- readCache :: ServerOpts -> (Level -> String -> IO ()) -> (FilePath -> ExceptT String IO Structured) -> IO (Maybe Database)
- module HsDev.Server.Types
- module HsDev.Server.Message
Documentation
initLog :: ServerOpts -> IO (Log, Level -> String -> IO (), ([String] -> IO ()) -> IO (), IO ()) Source
Inits log chan and returns functions (print message, wait channel)
runServer :: ServerOpts -> (CommandOptions -> IO ()) -> IO () Source
Run server
startServer :: ServerOpts -> IO Server Source
writeCache :: ServerOpts -> (Level -> String -> IO ()) -> Database -> IO () Source
readCache :: ServerOpts -> (Level -> String -> IO ()) -> (FilePath -> ExceptT String IO Structured) -> IO (Maybe Database) Source
module HsDev.Server.Types
module HsDev.Server.Message