Skip to content

Commit 9be59a9

Browse files
committed
Naively use valid in filter
1 parent 8ea1c64 commit 9be59a9

File tree

1 file changed

+1
-1
lines changed
  • prettyprinter/test/Testsuite

1 file changed

+1
-1
lines changed

prettyprinter/test/Testsuite/Main.hs

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

109109
instance Arbitrary ann => Arbitrary (Doc ann) where
110110
arbitrary = document
111-
shrink doc = case doc of
111+
shrink doc = filter valid $ case doc of
112112
Fail -> [Empty]
113113
Empty -> []
114114
Char c -> Empty : map Char (filter (/= '\n') (shrink c))

0 commit comments

Comments
 (0)