deriving (Eq, Ord, Read, Show) for Newline and NewlineMode
authorSimon Marlow <marlowsd@gmail.com>
Mon, 13 Sep 2010 15:30:31 +0000 (15:30 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 13 Sep 2010 15:30:31 +0000 (15:30 +0000)
GHC/IO/Handle/Types.hs

index 73a9927..c8b6b79 100644 (file)
@@ -316,7 +316,7 @@ and hence it is only possible on a seekable Handle.
 -- | The representation of a newline in the external file or stream.
 data Newline = LF    -- ^ '\n'
              | CRLF  -- ^ '\r\n'
-             deriving Eq
+             deriving (Eq, Ord, Read, Show)
 
 -- | Specifies the translation, if any, of newline characters between
 -- internal Strings and the external file or stream.  Haskell Strings
@@ -329,7 +329,7 @@ data NewlineMode
                   outputNL :: Newline
                     -- ^ the representation of newlines on output
                  }
-             deriving Eq
+             deriving (Eq, Ord, Read, Show)
 
 -- | The native newline representation for the current platform: 'LF'
 -- on Unix systems, 'CRLF' on Windows.