Safe Haskell | None |
---|
This module provides a first-class version of the Data.Text module.
- data TextModule = Text {
- 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)
- class TextImplements interface where
- _Data_Text_ :: interface
Module interface
data TextModule Source
Text | |
|