unless -package:classy-prelude -package:hledger-web
base Control.Monad,
base-compat Control.Monad.Compat,
protolude Protolude.Monad,
relude Relude.Bool.Reexport,
rio RIO.Prelude,
base-prelude BasePrelude,
turtle Turtle,
shelly Shelly Shelly.Lifted Shelly.Pipe,
universum Universum.Bool.Reexport,
base-compat-batteries Control.Monad.Compat,
Cabal-syntax Distribution.Compat.Prelude,
basement Basement.Compat.Base Basement.Imports,
Agda Agda.Utils.Monad,
rebase Rebase.Prelude,
hledger Hledger.Cli.Script,
persistent-test Init,
stack Stack.Prelude,
massiv-test Test.Massiv.Utils,
incipit-base Incipit.Base,
LambdaHack Game.LambdaHack.Core.Prelude,
cabal-install-solver Distribution.Solver.Compat.Prelude,
can-i-haz Control.Monad.Except.CoHas Control.Monad.Reader.Has,
yesod-paginator Yesod.Paginator.Prelude,
control-monad-free Control.Monad.Free,
distribution-opensuse OpenSuse.Prelude,
faktory Faktory.Prelude,
termonad Termonad.Prelude,
zio ZIO.Trans When the given predicate is false for the input signal.
- Depends: now.
- Inhibits: unless the predicate is false.
Show a custom type error if p is false (or stuck).
if condition met, fail without a message; better avoided, since AI
can't value it well
Monadic version of unless, taking the condition in the monad
Like
unless, but where the test can be monadic.
Do nothing on `--expert`, otherwise run the given action.
Monadic version of
unless. Reverse of
whenM.
Conditionally don't execute the provided action.
>>> unlessM (pure False) $ putTextLn "No text :("
No text :(
>>> unlessM (pure True) $ putTextLn "Yes text :)"
Run the second value if the first value returns
False
A monadic-conditional version of the
unless guard.
Display something only if the condition is
False (empty string
otherwise).
Monadic version of
unless.
>>> unlessM (pure False) $ putTextLn "No text :("
No text :(
>>> unlessM (pure True) $ putTextLn "Yes text :)"
A variant of
unless with a monadic predicate.