modular-prelude-0.2.0.0: A new Prelude featuring first class modules

Safe HaskellNone

ModularPrelude.Text

Documentation

data TextModule Source

Constructors

Text 

Fields

map :: (Char -> Char) -> Text -> Text
 
concatMap :: (Char -> Text) -> Text -> Text
 
filter :: (Char -> Bool) -> Text -> Text
 
length :: Text -> Int
 
singleton :: Char -> Text
 
null :: Text -> Bool
 
pack :: [Char] -> Text
 
unpack :: Text -> [Char]
 
empty :: Text
 
readFile :: FilePath -> IO Text
 
writeFile :: FilePath -> Text -> IO ()
 
break :: (Char -> Bool) -> Text -> (Text, Text)
 
span :: (Char -> Bool) -> Text -> (Text, Text)
 
dropWhile :: (Char -> Bool) -> Text -> Text
 
takeWhile :: (Char -> Bool) -> Text -> Text
 
any :: (Char -> Bool) -> Text -> Bool
 
all :: (Char -> Bool) -> Text -> Bool
 
splitAt :: Int -> Text -> (Text, Text)
 

Instances