ddc-core-0.4.3.1: Disciplined Disciple Compiler core language and type checker.

Safe HaskellSafe
LanguageHaskell98

DDC.Control.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.