git.iko.soy/typeable/attoparsec
on master help sign in
Fix build with GHC <= 7.2
commitca250b1a780a40ab0cdd71318e54bd423379ba6e authorBryan O'Sullivan <bos@serpentine.com> dateTue 17 Feb 2015, 23:04 (12 years ago) parent23c2853
1 file changed+2−1
Data/Attoparsec/Internal/Types.hs+2−1
Data/Attoparsec/Internal/Types.hs+2−1
@@ -75,7 +75,8 @@ instance (Show i, Show r) => Show (IResult i r) where
7575 (Fail t stk msg) -> showString "Fail" . f t . f stk . f msg
7676 (Partial _) -> showString "Partial _"
7777 (Done t r) -> showString "Done" . f t . f r
78− where f x = showChar ' ' . showsPrec 11 x
78+ where f :: Show a => a -> ShowS
79+ f x = showChar ' ' . showsPrec 11 x
7980
8081instance (NFData i, NFData r) => NFData (IResult i r) where
8182 rnf (Fail t stk msg) = rnf t `seq` rnf stk `seq` rnf msg