| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ribosome.Mapping
Description
Functions for constructing and activating Mappings
Synopsis
- mappingCmdWith :: Member Rpc r => (Text -> Text -> Text -> Map Text Object -> RpcCall ()) -> Mapping -> Sem r ()
- mappingCmd :: Member Rpc r => Mapping -> Sem r ()
- bufferMappingCmd :: Member Rpc r => Buffer -> Mapping -> Sem r ()
- activateMapping :: Member Rpc r => Mapping -> Sem r ()
- activateBufferMapping :: Member Rpc r => Buffer -> Mapping -> Sem r ()
- mappingFor :: RpcHandler r -> MappingLhs -> NonEmpty MapMode -> Maybe MappingId -> Map Text Object -> Mapping
- eventMapping :: EventName -> MappingLhs -> NonEmpty MapMode -> Maybe MappingId -> Map Text Object -> Mapping
Documentation
mappingCmdWith :: Member Rpc r => (Text -> Text -> Text -> Map Text Object -> RpcCall ()) -> Mapping -> Sem r () Source #
Generate an atomic call executing a mapping cmd for all modes specified in the Mapping and run it.
mappingCmd :: Member Rpc r => Mapping -> Sem r () Source #
Generate an atomic call executing a mapping cmd for all modes specified in the Mapping and run it.
Arguments
| :: Member Rpc r | |
| => Buffer | Use |
| -> Mapping | |
| -> Sem r () |
Generate an atomic call executing a buffer mapping cmd for all modes specified in the Mapping and run it.
activateBufferMapping :: Member Rpc r => Buffer -> Mapping -> Sem r () Source #
Register a mapping in the supplied buffer.
mappingFor :: RpcHandler r -> MappingLhs -> NonEmpty MapMode -> Maybe MappingId -> Map Text Object -> Mapping Source #
Construct a Mapping using the name from the supplied RpcHandler.