Skip to content

Commit

Permalink
Naively use valid in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sjakobi committed Jan 24, 2020
1 parent 8fb5cef commit f27ae11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prettyprinter/test/Testsuite/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fusionDoesNotChangeRendering depth

instance Arbitrary ann => Arbitrary (Doc ann) where
arbitrary = document
shrink doc = case doc of
shrink doc = filter valid $ case doc of
Fail -> [Empty]
Empty -> []
Char c -> Empty : map Char (filter (/= '\n') (shrink c))
Expand Down

0 comments on commit f27ae11

Please sign in to comment.