Skip to content

Commit f27ae11

Browse files
committed
Naively use valid in filter
1 parent 8fb5cef commit f27ae11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • prettyprinter/test/Testsuite

prettyprinter/test/Testsuite/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fusionDoesNotChangeRendering depth
114114

115115
instance Arbitrary ann => Arbitrary (Doc ann) where
116116
arbitrary = document
117-
shrink doc = case doc of
117+
shrink doc = filter valid $ case doc of
118118
Fail -> [Empty]
119119
Empty -> []
120120
Char c -> Empty : map Char (filter (/= '\n') (shrink c))

0 commit comments

Comments
 (0)