Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
createRequest :: Members [AtomicState (Requests fmt), Embed IO] r => Sem r (RequestId, MVar (Either ResponseError fmt)) Source #
sendRequest :: Members [Commands fmt command, AtomicState (Requests fmt)] r => Members [Queue (OutMessage fmt) !! MpvError, Stop MpvError, Race, Embed IO] r => command a -> Sem r (MVar (Either ResponseError fmt)) Source #
syncRequest :: Members [Commands fmt command, AtomicState (Requests fmt)] r => Members [Queue (OutMessage fmt) !! MpvError, Stop MpvError, Race, Embed IO] r => command a -> Sem r a Source #
waitEventAndRun :: TimeUnit u => Members [EventConsumer token MpvEvent, Log, Resource, Async, Race] r => EventName -> u -> Sem r a -> Sem r (Maybe (Some Event), a) Source #
interpretIpcWithQueue :: Members [Commands fmt command, EventConsumer token MpvEvent] r => Members [Queue (OutMessage fmt) !! MpvError, AtomicState (Requests fmt), Log, Resource, Async, Race, Embed IO] r => InterpreterFor (Ipc fmt command !! MpvError) r Source #
interpretIpc :: Members [Commands fmt command, EventConsumer token MpvEvent] r => Members [Log, Resource, Async, Race, Embed IO] r => MpvResources fmt -> InterpreterFor (Ipc fmt command !! MpvError) r Source #
interpretIpcResources :: Members [EventConsumer token MpvEvent, Resource, Async, Race, Log, Embed IO, Final IO] r => Either MpvError (MpvResources Value) -> InterpreterFor (Ipc Value Command !! MpvError) r Source #