Common debugging/error/exception functions that give file location information
Notice how it displays package:module file:line:character
It exposes the functions err (error), undef (undefined), and trc (Debug.Trace.trace). All of these behave the same as their normal counterpart but also spit out a location.
Here is my favorite helper, debug, which is like trace but just show the value.
And The Template Haskell version.
Also there is a version of thrwIO that gives location information
See module for a listing of all the functions with short descriptions, and the homepage for some more examples https:github.comgregwebsErrorLocation.hs