]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/MIMEParams.hs
auto-derive Foldable
[Lucu.git] / Network / HTTP / Lucu / MIMEParams.hs
index 1304c2328a5db1fd3931e332b07948928dc32bdb..183a4c07bd9475106a4475ffe64c1b7ddbc91ee8 100644 (file)
@@ -58,17 +58,9 @@ newtype MIMEParams
     deriving (Eq, Show, Read, Monoid, Typeable)
 
 C.derive [d| instance Unfoldable MIMEParams (CIAscii, Text)
+             instance Foldable   MIMEParams (CIAscii, Text)
            |]
 
--- FIXME: auto-derive
-instance Foldable MIMEParams (CIAscii, Text) where
-    {-# INLINE null #-}
-    null (MIMEParams m) = null m
-    {-# INLINE size #-}
-    size (MIMEParams m) = size m
-    {-# INLINE foldr #-}
-    foldr f b (MIMEParams m) = foldr f b m
-
 -- FIXME: auto-derive
 instance Collection MIMEParams (CIAscii, Text) where
     {-# INLINE filter #-}