X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FUtils.hs;h=0c29836592e72be3354bf6e6fc2826f5cd666ace;hb=0dc3d31312a12f2b085242841b29eb0d96e9c4ac;hp=d6e46f180e1d2c61990979cd96506b48dcacb6c5;hpb=8e78bc83bfe67a376293c346ae0b30f1a684c787;p=Lucu.git diff --git a/Network/HTTP/Lucu/Utils.hs b/Network/HTTP/Lucu/Utils.hs index d6e46f1..0c29836 100644 --- a/Network/HTTP/Lucu/Utils.hs +++ b/Network/HTTP/Lucu/Utils.hs @@ -25,7 +25,7 @@ splitBy isSeparator src of (last , [] ) -> last : [] (first, sep:rest) -> first : splitBy isSeparator rest --- |> joinWith ':' ["ab", "c", "def"] +-- |> joinWith ":" ["ab", "c", "def"] -- > ==> "ab:c:def" joinWith :: [a] -> [[a]] -> [a] joinWith separator xs @@ -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