Description
Provides a convenient way for Haskell code to panic when an impossible or unrecoverable internal state is reached. This can make internal failures explicit and easier to diagnose.
It is useful for assertions, compiler-style code, parsers, and libraries that distinguish programmer errors from normal recoverable errors. It should be used carefully because panics terminate normal control flow.