mpv-0.1.0.0: Mpv Client for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Instances details
type DefiningModule Commands Source # 
Instance details

Defined in Mpv.Effect.Commands

type DefiningModule Commands = "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 #