Err is:module

The GHC.Err module defines the code for the wired-in error functions, which have a special type in the compiler (with "open tyvars"). We cannot define these functions in a module where they might be used (e.g., GHC.Base), because the magical wired-in type will get confused with what the typechecker figures out.
The GHC.Err module defines the code for the wired-in error functions, which have a special type in the compiler (with "open tyvars"). We cannot define these functions in a module where they might be used (e.g., GHC.Base), because the magical wired-in type will get confused with what the typechecker figures out.
C-specific Marshalling support: Handling of C "errno" error codes.
Routines for testing return values and raising a userError exception in case of values indicating an error state.
Standard IO Errors.
Types and functions for dealing with encoding and decoding errors in Unicode text. The standard functions for encoding and decoding text are strict, which is to say that they throw exceptions on invalid input. This is often unhelpful on real world input, so alternative functions exist that accept custom handlers for dealing with invalid inputs. These OnError handlers are normal Haskell functions. You can use one of the presupplied functions in this module, or you can write a custom handler of your own.
Parse errors
Parsec compatibility module
POSIX error support
Parse errors. The current version of Megaparsec supports typed errors instead of String-based ones. This gives a lot of flexibility in describing what exactly went wrong as well as a way to return arbitrary data in case of failure. You probably do not want to import this module directly because Text.Megaparsec re-exports it anyway.
Import this module in your code to access the entire library's functionality:
import Control.Error
This module exports the entire library as well as useful exports from other standard error-handling libraries:
  • Control.Error.Safe: Generalizes the safe library, including Either, EitherT, and MonadPlus variations on total functions
  • Control.Error.Script: Support for simple scripts that catch all errors and transform them to Text
  • Control.Error.Util: Utility functions and conversions between common error-handling types
  • Control.Monad.Trans.Except: The ExceptT monad transformer
  • Control.Monad.Trans.Maybe: The MaybeT monad transformer
  • Data.Either: Either utility functions
  • Data.EitherR: throw and catch functions, and their corresponding "success" monads
  • Data.Maybe: Maybe utility functions
  • Safe: Total versions of partial Prelude functions
This module does not re-export partial functions from other libraries.
| Module for parsing errors from postgresql error messages. Currently only parses integrity violation errors (class 23). Note: Success of parsing may depend on language settings.
This module corresponds to section 2.5 (GL Errors) of the OpenGL 2.1 specs and chapter 8 (Errors) of the GLU specs, offering a generalized view of errors in GL and GLU.