Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Command invokation preconditions
Documentation
A check for a command.
Every check for a command must return Nothing for the command to be run.
Instances
buildCheck :: (Monad m, Member (Final m) r) => Text -> (c -> Sem r (Maybe Text)) -> Sem r (Check m c) Source #
Given the name of a check and a callback in the Sem
monad, build a check
by transforming the Polysemy action into an m
action.