Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data Commands (fmt :: Type) (command :: Type -> Type) :: Effect where Source #
Decode :: command a -> fmt -> Commands fmt command m (Either ResponseError a) | |
Encode :: RequestId -> Bool -> command a -> Commands fmt command m fmt |
Instances
type DefiningModule Commands Source # | |
Defined in Mpv.Effect.Commands |
encode :: forall fmt command r a. MemberWithError (Commands fmt command) r => RequestId -> Bool -> command a -> Sem r fmt Source #
decode :: forall fmt command r a. MemberWithError (Commands fmt command) r => command a -> fmt -> Sem r (Either ResponseError a) Source #