hsdev-0.1.2.1: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.

Safe HaskellNone
LanguageHaskell98

HsDev.Server.Commands

Synopsis

Documentation

commands :: [Cmd (IO ())] Source

Server commands

serverOpts :: [Opt] Source

Server options

serverDefCfg :: Opts String Source

Server default options

clientOpts :: [Opt] Source

Client options

clientDefCfg :: Opts String Source

Client default options

clientCmd :: Cmd CommandAction -> Cmd (IO ()) Source

Command to send to client

sendCmd :: String -> Args -> IO () Source

Send command to server

initLog :: Opts String -> IO (String -> IO (), ([String] -> IO ()) -> IO (), IO ()) Source

Inits log chan and returns functions (print message, wait channel)

runServer :: Opts String -> (CommandOptions -> IO ()) -> IO () Source

Run server

processRequest :: CommandOptions -> (Notification -> IO ()) -> Request -> IO Result Source

Process request, notifications can be sent during processing

processClient :: String -> IO ByteString -> (ByteString -> IO ()) -> CommandOptions -> IO () Source

Process client, listen for requests and process them

withCache :: Opts String -> a -> (FilePath -> IO a) -> IO a Source

Perform action on cache

writeCache :: Opts String -> (String -> IO ()) -> Database -> IO () Source