X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FMIMEType.hs;h=b41bbcd50f07b9857625e08ac7dda9107faef95a;hp=93b8f1ff38d7aeed4f388432ee5cc8463bb68166;hb=30fcb38426696db8b80d322196cc594431e30407;hpb=175e14b3b144537644e65ca76f1fca5c56fd44e9 diff --git a/Network/HTTP/Lucu/MIMEType.hs b/Network/HTTP/Lucu/MIMEType.hs index 93b8f1f..b41bbcd 100644 --- a/Network/HTTP/Lucu/MIMEType.hs +++ b/Network/HTTP/Lucu/MIMEType.hs @@ -49,17 +49,19 @@ infixl 8 <:> maj min = MIMEType maj min [] --- |\<\:\> appends a @(name, value)@ pair to a MIME Type. +-- |This operator appends a @(name, value)@ pair to a MIME Type. (<:>) :: MIMEType -> (String, String) -> MIMEType mt@(MIMEType _ _ params) <:> pair = mt { mtParams = mtParams mt ++ [pair] } --- |\<\=\> takes two strings and makes a tuple of them. So you can say --- @\"text\" \<\/\> \"xml\" \<\:\> \"charset\" \<\=\> \"UTF-8\" \<\:\> --- \"q\" \<\=\> \"0.9\"@ to represent \"text\/xml; charset=UTF-8; --- q=0.9\". +-- |This operator takes two strings and makes a tuple of them. So you +-- can say +-- +-- > "text" "xml" <:> "charset" <=> "UTF-8" <:> "q" <=> "0.9" +-- +-- to represent \"text\/xml; charset=UTF-8; q=0.9\". (<=>) :: String -> String -> (String, String) name <=> value = (name, value)