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
- type URL = String
- 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
Documentation
type LBString = ByteString
type BString = ByteString
A URL, or internet address. These addresses will usually start with either
http://
or file://
.
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