Skip to content

Commit

Permalink
Discard on failed pattern matches within a Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
HuwCampbell committed Mar 20, 2019
1 parent 961479e commit abd765b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hedgehog/src/Hedgehog/Internal/Gen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ instance Monad m => Monad (GenT m) where
Fail.fail

instance Monad m => MonadFail (GenT m) where
fail =
error
fail _ =
discard

instance Monad m => Alternative (GenT m) where
empty =
Expand Down

0 comments on commit abd765b

Please sign in to comment.