hsdev-0.1.6.6: 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

type Msg a = (Bool, a) Source

msg :: Lens (Msg a) (Msg b) a b Source

jsonMsg :: a -> Msg a Source

lispMsg :: a -> Msg a Source

decodeMessage :: FromJSON a => ByteString -> Either (Msg String) (Msg (Message a)) Source

Decode lisp or json request

processRequest :: SessionMonad m => CommandOptions -> Command -> m Result Source

Process request, notifications can be sent during processing

processClient :: SessionMonad m => String -> Chan ByteString -> (ByteString -> IO ()) -> m () Source

Process client, listen for requests and process them

processClientSocket :: SessionMonad m => Socket -> m () Source

Process client by socket