located-base-0.1.1.1: Location-aware variants of partial functions

Safe HaskellSafe
LanguageHaskell2010

GHC.Err.Located

Synopsis

Documentation

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

error stops execution and displays an error message.

undefined :: HasCallStack => a #

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.

type HasCallStack = ?callStack :: CallStack #

Request a CallStack.

NOTE: The implicit parameter ?callStack :: CallStack is an implementation detail and should not be considered part of the CallStack API, we may decide to change the implementation in the future.

Since: 4.9.0.0

showCallStack :: CallStack -> String Source #

Deprecated: use GHC.Stack.prettyCallStack instead