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

Safe HaskellNone

ModularPrelude.Module.Text

Contents

Description

This module provides a first-class version of the Data.Text module.

Synopsis

Module interface

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)
 

Module contents

class TextImplements interface whereSource

Methods

_Data_Text_ :: interfaceSource