X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FMIMEParams.hs;h=36982139ce257433018b4530f5f9058352c041a6;hp=183a4c07bd9475106a4475ffe64c1b7ddbc91ee8;hb=852d97c73c367bc7880600850d92463f580ca1ca;hpb=b8d4661ea67362e44cf4ec8d62d996a5d0d89bdf diff --git a/Network/HTTP/Lucu/MIMEParams.hs b/Network/HTTP/Lucu/MIMEParams.hs index 183a4c0..3698213 100644 --- a/Network/HTTP/Lucu/MIMEParams.hs +++ b/Network/HTTP/Lucu/MIMEParams.hs @@ -11,7 +11,7 @@ , UnicodeSyntax #-} {-# OPTIONS_GHC -ddump-splices #-} -- FIXME --- GHC 7.0.3 gives us a false warning. +-- THINKME: GHC 7.0.3 gives us a false warning. {-# OPTIONS_GHC -fno-warn-missing-methods #-} -- |Parsing and printing MIME parameter values -- (). @@ -59,22 +59,10 @@ newtype MIMEParams C.derive [d| instance Unfoldable MIMEParams (CIAscii, Text) instance Foldable MIMEParams (CIAscii, Text) + instance Collection MIMEParams (CIAscii, Text) + instance Indexed MIMEParams CIAscii Text |] --- FIXME: auto-derive -instance Collection MIMEParams (CIAscii, Text) where - {-# INLINE filter #-} - filter f (MIMEParams m) = MIMEParams $ filter f m - --- FIXME: auto-derive -instance Indexed MIMEParams CIAscii Text where - {-# INLINE index #-} - index k (MIMEParams m) = index k m - {-# INLINE adjust #-} - adjust f k (MIMEParams m) = MIMEParams $ adjust f k m - {-# INLINE inDomain #-} - inDomain k (MIMEParams m) = inDomain k m - -- FIXME: auto-derive instance Map MIMEParams CIAscii Text where {-# INLINE lookup #-}