X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FUtils.hs;h=d92516ee15875a6791fc912b8d11ebe1eb765ffb;hb=636a3b3334f1ede61dc1e6faa2c4a021ea9bbd5c;hp=b22780b5f121aab681722b8ac17333f41ba3a66e;hpb=858129cb755aa09da2b7bd758efb8519f2c89103;p=Lucu.git diff --git a/Network/HTTP/Lucu/Utils.hs b/Network/HTTP/Lucu/Utils.hs index b22780b..d92516e 100644 --- a/Network/HTTP/Lucu/Utils.hs +++ b/Network/HTTP/Lucu/Utils.hs @@ -12,11 +12,8 @@ module Network.HTTP.Lucu.Utils ) where -import Control.Monad.Trans import Data.Char import Data.List -import Foreign -import Foreign.C import Network.URI -- |> splitBy (== ':') "ab:c:def" @@ -28,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