-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add callstacks to generators that can error.
Previously, `val <- Gen.element []` would give an error like Hedgehog.Gen.element: used with empty Foldable CallStack (from HasCallStack): error, called at src/Hedgehog/Internal/Gen.hs:1197:5 in hedgehog-1.4-FEcjASqhnyiHkb8BJanjYM:Hedgehog.Internal.Gen Which isn't very helpful. Now the callstack entry points to my own code, instead.
- Loading branch information
1 parent
724b602
commit 9c85082
Showing
1 changed file
with
37 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters