| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Mpv.Effect.Commands
Documentation
data Commands (fmt :: Type) (command :: Type -> Type) :: Effect where Source #
Constructors
| 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 #