import {-# SOURCE #-} PrelErr ( error )
import PrelBase
import PrelMaybe
-import PrelList ( (!!), break, dropWhile )
+import PrelList ( (!!), break, dropWhile
+#ifdef USE_REPORT_PRELUDE
+ , concatMap, foldr1
+#endif
+ )
\end{code}
instance Show Ordering where
showsPrec _ LT = showString "LT"
showsPrec _ EQ = showString "EQ"
- showsPrec _ GT = showString "EQ"
+ showsPrec _ GT = showString "GT"
instance Show Char where
showsPrec _ '\'' = showString "'\\''"
showsPrec p n = showSignedInt p n
instance Show a => Show (Maybe a) where
- showsPrec p Nothing = showString "Nothing"
- showsPrec p (Just x) = showString "Just " . shows x
+ showsPrec _p Nothing = showString "Nothing"
+ showsPrec _p (Just x) = showString "Just " . shows x
-- Not sure I have the priorities right here
instance (Show a, Show b) => Show (Either a b) where
- showsPrec p (Left a) = showString "Left " . shows a
- showsPrec p (Right b) = showString "Right " . shows b
+ showsPrec _p (Left a) = showString "Left " . shows a
+ showsPrec _p (Right b) = showString "Right " . shows b
-- Not sure I have the priorities right here
\end{code}