]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/MIMEType.hs
Fixed many bugs...
[Lucu.git] / Network / HTTP / Lucu / MIMEType.hs
index fdc112c7eea12ac560492795616b66f446c18faa..36cdf0f82797b491783e9fd8ad1cac48fc2848ff 100644 (file)
@@ -33,7 +33,10 @@ data MIMEType = MIMEType {
       mtMajor  ∷ !CIAscii
     , mtMinor  ∷ !CIAscii
     , mtParams ∷ !(Map CIAscii Text)
-    } deriving (Eq, Show)
+    } deriving (Eq)
+
+instance Show MIMEType where
+    show = A.toString ∘ A.fromAsciiBuilder ∘ printMIMEType
 
 -- |Construct a 'MIMEType' without any parameters.
 mkMIMEType ∷ CIAscii → CIAscii → MIMEType