ghc-internal-9.1001.0: Basic libraries
Copyright(c) The University of Glasgow 1994-2002
Licensesee libraries/base/LICENSE
Maintainerghc-devs@haskell.org
Stabilityinternal
Portabilitynon-portable (GHC extensions)
Safe HaskellTrustworthy
LanguageHaskell2010

GHC.Internal.Err

Description

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.

Synopsis

Documentation

absentErr :: a Source #

Used for compiler-generated error message; encoding saves bytes of string junk.

error :: HasCallStack => [Char] -> a Source #

error stops execution and displays an error message.

errorWithoutStackTrace :: [Char] -> a Source #

A variant of error that does not produce a stack trace.

Since: base-4.9.0.0

undefined :: HasCallStack => a Source #

A special case of error. It is expected that compilers will recognize this and insert error messages which are more appropriate to the context in which undefined appears.