Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Some (f :: k -> Type) where
- codecReqResp :: forall req (m :: Type -> Type). Monad m => (forall resp. req resp -> String) -> (String -> Maybe (Some req)) -> (forall resp. req resp -> resp -> String) -> (forall resp. req resp -> String -> Maybe resp) -> Codec (ReqResp req) CodecFailure (State :: ReqResp req -> Type) m String
- data Bytes where
- codecReqRespId :: forall (m :: Type -> Type). Applicative m => (forall res1 res2. (Typeable res1, Typeable res2) => Proxy res1 -> Proxy res2 -> Maybe (res1 :~: res2)) -> Codec FileRPC String (State :: ReqResp FileAPI -> Type) m Bytes
Documentation
:: forall req (m :: Type -> Type). Monad m | |
=> (forall resp. req resp -> String) | encode `req resp` |
-> (String -> Maybe (Some req)) | decode `req resp` |
-> (forall resp. req resp -> resp -> String) | encode resp |
-> (forall resp. req resp -> String -> Maybe resp) | decode resp |
-> Codec (ReqResp req) CodecFailure (State :: ReqResp req -> Type) m String |
Codec polymorphic in the RPC (e.g. req
type)