ddc-base-0.4.2.1: Disciplined Disciple Compiler common utilities.

Safe HaskellNone
LanguageHaskell98

DDC.Base.Panic

Synopsis

Documentation

panic Source

Arguments

:: String

Package name,

-> String

Function name.

-> Doc

Error message that makes some suggestion of what caused the error.

-> a 

Print an error message and exit the compiler, ungracefully.

This function should be called when we end up in a state that is definately due to a bug in the compiler.