ghci-websockets-0.0.2: A websocket server that survives GHCi reloads

Safe HaskellSafe
LanguageHaskell2010

Ghci.Server.Config

Synopsis

Documentation

data Config Source #

Server configuration

defaultConfig :: Config Source #

Default config, use ports 9160 (websockets) and 3000 (http) and ignore all log messages.

cfWSPort :: Config -> Int Source #

Websocket port

cfHTTPPort :: Config -> Int Source #

HTTP port

cfVerbosity :: Config -> Verbosity Source #

What to do with log messages

data Verbosity Source #

What to do with log messages

Constructors

Verbose

Write all log messages to stdout

Silent

Ignore all log messages

logStr :: Config -> String -> IO () Source #

Log a message according to the configured Verbosity