From 9da33cd3716dc4e0a371aafe33c0e22292474f1b Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 7 Dec 2012 18:31:23 -0800 Subject: [PATCH] add Ord and Read instances to the encoding/decoding exceptions Ignore-this: 5ec11b8739b241f1cc2935f5f8e34bfb darcs-hash:20121208023123-76d51-b27be713e80337673d35c2b749a52e964810b17b --- Data/Encoding/Exception.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/Encoding/Exception.hs b/Data/Encoding/Exception.hs index e539cd8..cdbe8ec 100644 --- a/Data/Encoding/Exception.hs +++ b/Data/Encoding/Exception.hs @@ -11,7 +11,7 @@ import Control.Monad.Identity data EncodingException = HasNoRepresentation Char -- ^ Thrown if a specific character -- is not representable in an encoding. - deriving (Eq,Show,Typeable) + deriving (Eq,Ord,Show,Read,Typeable) instance Exception EncodingException @@ -25,6 +25,6 @@ data DecodingException | OutOfRange -- ^ the decoded value was out of the unicode range | IllegalRepresentation [Word8] -- ^ The character sequence encodes a -- character, but is illegal. - deriving (Eq,Show,Typeable) + deriving (Eq,Ord,Show,Read,Typeable) instance Exception DecodingException