typed-protocols-examples-0.2.0.3: Examples and tests for the typed-protocols framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.TypedProtocol.ReqResp.Type

Documentation

data ReqResp req resp where Source #

Constructors

StIdle :: ReqResp req resp 
StBusy :: ReqResp req resp 
StDone :: ReqResp req resp 

Instances

Instances details
Show (ClientHasAgency st) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

Show (ServerHasAgency st) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

(Show req, Show resp) => Show (Message (ReqResp req resp) from to) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

Methods

showsPrec :: Int -> Message (ReqResp req resp) from to -> ShowS #

show :: Message (ReqResp req resp) from to -> String #

showList :: [Message (ReqResp req resp) from to] -> ShowS #

(Eq req, Eq resp) => Eq (Message (ReqResp req resp) from to) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

Methods

(==) :: Message (ReqResp req resp) from to -> Message (ReqResp req resp) from to -> Bool #

(/=) :: Message (ReqResp req resp) from to -> Message (ReqResp req resp) from to -> Bool #

Protocol (ReqResp req resp) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

Associated Types

data Message (ReqResp req resp) st st' #

data ClientHasAgency st #

data ServerHasAgency st #

data NobodyHasAgency st #

data ClientHasAgency (st :: ReqResp req resp) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

data ClientHasAgency (st :: ReqResp req resp) where
data Message (ReqResp req resp) (from :: ReqResp req resp) (to :: ReqResp req resp) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

data Message (ReqResp req resp) (from :: ReqResp req resp) (to :: ReqResp req resp) where
data NobodyHasAgency (st :: ReqResp req resp) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

data NobodyHasAgency (st :: ReqResp req resp) where
data ServerHasAgency (st :: ReqResp req resp) Source # 
Instance details

Defined in Network.TypedProtocol.ReqResp.Type

data ServerHasAgency (st :: ReqResp req resp) where