Safe Haskell | Safe-Infered |
---|
General.Base
Description
Module for pure things in the base, and things I think should have been in base, or could plausibly be added.
- type LBString = ByteString
- type BString = ByteString
- lbsUnpack :: ByteString -> [Char]
- bsUnpack :: ByteString -> [Char]
- bsReplace :: BString -> BString -> BString -> BString
- lbsReplace :: LBString -> LBString -> LBString -> LBString
- type URL = String
- fst3 :: (t, t1, t2) -> t
- snd3 :: (t, t1, t2) -> t1
- thd3 :: (t, t1, t2) -> t2
- swap :: (t1, t) -> (t, t1)
- fromLeft :: Either t t1 -> t
- fromRight :: Either t t1 -> t1
- isLeft :: Either t t1 -> Bool
- isRight :: Either t t1 -> Bool
- concatMapM :: Monad m => (a1 -> m [a]) -> [a1] -> m [a]
- unzipEithers :: [Either a b] -> ([a], [b])
- initLast :: [a] -> ([a], a)
- lower :: [Char] -> [Char]
- upper :: [Char] -> [Char]
- readFile' :: FilePath -> IO String
- readFileUtf8' :: FilePath -> IO String
- readFileUtf8 :: FilePath -> IO String
- writeFileUtf8 :: FilePath -> String -> IO ()
- writeFileBinary :: FilePath -> String -> IO ()
- ltrim :: [Char] -> [Char]
- rtrim :: [Char] -> [Char]
- trim :: [Char] -> [Char]
- chop :: ([a] -> (b, [a])) -> [a] -> [b]
- fromList :: a -> [a] -> a
Documentation
type LBString = ByteString
type BString = ByteString
lbsUnpack :: ByteString -> [Char]
bsUnpack :: ByteString -> [Char]
lbsReplace :: LBString -> LBString -> LBString -> LBString
A URL, or internet address. These addresses will usually start with either
http://
or file://
.
fst3 :: (t, t1, t2) -> t
snd3 :: (t, t1, t2) -> t1
thd3 :: (t, t1, t2) -> t2
swap :: (t1, t) -> (t, t1)
concatMapM :: Monad m => (a1 -> m [a]) -> [a1] -> m [a]
unzipEithers :: [Either a b] -> ([a], [b])
initLast :: [a] -> ([a], a)
readFileUtf8' :: FilePath -> IO String
readFileUtf8 :: FilePath -> IO String
writeFileUtf8 :: FilePath -> String -> IO ()
writeFileBinary :: FilePath -> String -> IO ()
chop :: ([a] -> (b, [a])) -> [a] -> [b]
fromList :: a -> [a] -> a