fail
base Prelude Control.Monad Control.Monad.Fail,
hedgehog Hedgehog.Internal.Prelude,
ghc GHC.Prelude.Basic,
base-compat Control.Monad.Compat Control.Monad.Compat Prelude.Compat,
fail Control.Monad.Fail,
rio RIO.Prelude,
base-prelude BasePrelude,
numeric-prelude NumericPrelude NumericPrelude.Base,
Cabal-syntax Distribution.Compat.MonadFail Distribution.Compat.Prelude,
fused-effects Control.Effect.Fail,
universum Universum.Monad.Reexport,
ihaskell IHaskellPrelude,
numhask NumHask.Prelude,
base-compat-batteries Control.Monad.Compat,
clash-prelude Clash.HaskellPrelude,
github GitHub.Internal.Prelude,
ghc-lib-parser GHC.Prelude.Basic,
dimensional Numeric.Units.Dimensional.Prelude,
ghc-internal GHC.Internal.Control.Monad GHC.Internal.Control.Monad.Fail,
haxl Haxl.Prelude,
rebase Rebase.Prelude,
hledger Hledger.Cli.Script,
mixed-types-num Numeric.MixedTypes.PreludeHiding,
xmonad-contrib XMonad.Config.Prime,
constrained-categories Control.Category.Hask,
copilot-language Copilot.Language.Prelude,
massiv-test Test.Massiv.Utils,
LambdaHack Game.LambdaHack.Core.Prelude Game.LambdaHack.Core.Prelude,
cabal-install-solver Distribution.Solver.Compat.Prelude,
faktory Faktory.Prelude,
can-i-haz Control.Monad.Except.CoHas Control.Monad.Reader.Has,
vcr Imports,
yesod-paginator Yesod.Paginator.Prelude,
hledger-web Hledger.Web.Import,
termonad Termonad.Prelude Important note
This
ignores whatever
String you give it. It is a bad
idea to use
fail as a form of labelled error; instead, it
should only be defaulted to when a pattern match fails.
Fail with a message. This operation is not part of the mathematical
definition of a monad, but is invoked on pattern-match failure in a
do expression.
As part of the MonadFail proposal (MFP), this function is moved to its
own class
MonadFail (see
Control.Monad.Fail for more
details). The definition here will be removed in a future release.
Fail with the provided error message.
Lift an
IOError to the answer type, similar to
fail.
This
fail function aims to be used as the last statement of a
do block.
Constructs a validator that always fails with provided error
e.
Example
>>> validateP ( fail "YOU SHALL NOT PASS!!!" ) 1
Right "YOU SHALL NOT PASS!!!"
Consumes and returns the next token from the input. Fails if no tokens
are left.
Transitional module providing the
MonadFail class and primitive
instances.
This module can be imported for defining forward compatible
MonadFail instances:
import qualified Control.Monad.Fail as Fail
instance Monad Foo where
(>>=) = {- ...bind impl... -}
-- Provide legacy fail implementation for when
-- new-style MonadFail desugaring is not enabled.
fail = Fail.fail
instance Fail.MonadFail Foo where
fail = {- ...fail implementation... -}
See
https://gitlab.haskell.org/haskell/prime/-/wikis/libraries/proposals/monad-fail
for more details.
The decoder ran into an error. The decoder either used
fail or
was not provided enough input. Contains any unconsumed input and the
number of bytes consumed.
The decoder ran into an error. The decoder either used
fail or
was not provided enough input.
The parse failed. The
i parameter is the input that had not
yet been consumed when the failure occurred. The
[String] is a list of contexts in which the
error occurred. The
String is the message describing the error,
if any.
The parse failed. The
ByteString is the input that had not yet
been consumed when the failure occurred. The
[String] is a list of contexts in which the
error occurred. The
String is the message describing the error,
if any.
The parse failed. The
Text is the input that had not yet been
consumed when the failure occurred. The
[String] is a list of contexts in which the
error occurred. The
String is the message describing the error,
if any.
The parse failed. The
String is the message describing the
error, if any.
Occurs when flattening a line. The layouter will reject this document,
choosing a more suitable rendering.
Keep trying other paths. The ServantError should only be 404,
405 or 406.