Location-aware variants of partial functions http://github.com/gridaphobe/located-base
|Latest on Hackage:||0.1.1.0|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
This library provides variants of standard partial functions that include their call-site in the error message when they crash.
Data.List.Located.head *** Exception: Prelude.head: empty list Callstack: error, called at src/Data/List/Located.hs:19:14 in locat_KhGZ7Rz1bn9DKFeFxhawNB:Data.List.Located head, called at <interactive>:6:1 in interactive:Ghci1