Used for compiler-generated error message; encoding saves bytes of string junk.
Modulebase-4.20.2.0Haskell2010
GHC.Err
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.
- 4 values
- Packagebase-4.20.2.0
- Exports4
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceErr.hs
error stops execution and displays an error message.
A variant of error that does not produce a stack trace.