We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fb5cef commit f27ae11Copy full SHA for f27ae11
1 file changed
prettyprinter/test/Testsuite/Main.hs
@@ -114,7 +114,7 @@ fusionDoesNotChangeRendering depth
114
115
instance Arbitrary ann => Arbitrary (Doc ann) where
116
arbitrary = document
117
- shrink doc = case doc of
+ shrink doc = filter valid $ case doc of
118
Fail -> [Empty]
119
Empty -> []
120
Char c -> Empty : map Char (filter (/= '\n') (shrink c))
0 commit comments