|
definition: |
evalOption :: (Options -> a) -> (a -> Bool) -> VStateM () -> VStateM () evalOption f b m = getOption f >>= flip when m . b |
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Gets an option and only executes the given monad if the given predicate evaluates to true for that option. |
|
failfree: |
(_, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,_) |-> _}
|
|
name: |
evalOption |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
(ToolOptions.Options -> a) -> (a -> Prelude.Bool) -> Control.Monad.Trans.State.StateT VState Prelude.IO () -> Control.Monad.Trans.State.StateT VState Prelude.IO () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |