You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shrink tree for this generator contains several duplicates:
$ stack ghci --package hedgehog --resolver lts-9.2
Configuring GHCi with the following packages:
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /tmp/ghci18165/ghci-script
Prelude> import Hedgehog
Prelude Hedgehog> import qualified Hedgehog.Gen as Gen
Prelude Hedgehog Gen> Gen.print $ Gen.maybe Gen.latin1
=== Outcome ===
Just 'T'
=== Shrinks ===
Nothing
Just 'T'
Just 'T'
Just 'T'
Just 'T'
Just '\NUL'
Just '*'
Just '?'
Just 'J'
Just 'O'
Just 'R'
Just 'S'
This slows down shrinking a lot. I think the culprit is maybe, you get reasonable shrinks from latin1 on its own.
The text was updated successfully, but these errors were encountered:
I'm not sure how to avoid this in the generators themselves, but perhaps we can build some things in to the tree to prevent duplicate entries if you're finding that shrinking is slowed down a lot by this.
The shrink tree for this generator contains several duplicates:
This slows down shrinking a lot. I think the culprit is
maybe
, you get reasonable shrinks fromlatin1
on its own.The text was updated successfully, but these errors were encountered: