hsdev-0.3.4.0: Haskell development library
Safe HaskellNone
LanguageHaskell2010

HsDev.Server.Commands

Synopsis

Documentation

data ServerOpts Source #

Server options

Instances

Instances details
Show ServerOpts Source # 
Instance details

Defined in HsDev.Server.Types

Default ServerOpts Source # 
Instance details

Defined in HsDev.Server.Types

Methods

def :: ServerOpts #

FromCmd ServerOpts Source # 
Instance details

Defined in HsDev.Server.Types

data ClientOpts Source #

Client options

Instances

Instances details
Show ClientOpts Source # 
Instance details

Defined in HsDev.Server.Types

Default ClientOpts Source # 
Instance details

Defined in HsDev.Server.Types

Methods

def :: ClientOpts #

FromCmd ClientOpts Source # 
Instance details

Defined in HsDev.Server.Types

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 => String -> Socket -> m () Source #

Process client by socket