X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FUtils.hs;h=0c29836592e72be3354bf6e6fc2826f5cd666ace;hp=d92516ee15875a6791fc912b8d11ebe1eb765ffb;hb=0dc3d31312a12f2b085242841b29eb0d96e9c4ac;hpb=078fc2851ceae061fe368f2bc09fcd16d67ae00f diff --git a/Network/HTTP/Lucu/Utils.hs b/Network/HTTP/Lucu/Utils.hs index d92516e..0c29836 100644 --- a/Network/HTTP/Lucu/Utils.hs +++ b/Network/HTTP/Lucu/Utils.hs @@ -40,7 +40,8 @@ trim p = p `seq` trimTail . trimHead trimHead = dropWhile p trimTail = reverse . trimHead . reverse --- |@'noCaseEq' a b@ is equivalent to @(map toLower a) == (map toLower +-- |@'noCaseEq' a b@ is equivalent to @('Prelude.map' +-- 'Data.Char.toLower' a) == ('Prelude.map' 'Data.Char.toLower' -- b)@. See 'noCaseEq''. noCaseEq :: String -> String -> Bool noCaseEq a b @@ -55,7 +56,8 @@ noCaseEq' a b | otherwise = noCaseEq a b {-# INLINE noCaseEq' #-} --- |@'isWhiteSpace' c@ is True iff c is one of SP, HT, CR and LF. +-- |@'isWhiteSpace' c@ is 'Prelude.True' iff c is one of SP, HT, CR +-- and LF. isWhiteSpace :: Char -> Bool isWhiteSpace ' ' = True isWhiteSpace '\t' = True