Using HasCallStack, test runs can output more information about where an assertion failed.
Example:
CallStack (from HasCallStack):
shouldBe, called at test/Spec.hs:256:28 in main:Spec
compare, called at test/Spec.hs:206:7 in main:Spec
runSpec, called at test/TestMain.hs:49:7 in main:TestMain
Feature description
Using
HasCallStack
, test runs can output more information about where an assertion failed.Example: