rio-0.1.21.0: A standard library for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

RIO.Text.Lazy

Description

Lazy Text. Import as:

import qualified RIO.Text.Lazy as TL

This module does not export any partial functions. For those, see RIO.Text.Lazy.Partial

Synopsis

Types

data Text #

Instances

Instances details
Hashable Text 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Text -> Int

hash :: Text -> Int

Display Text Source #

Since: 0.1.0.0

Instance details

Defined in RIO.Prelude.Display

type Item Text 
Instance details

Defined in Data.Text.Lazy

type Item Text = Char

Creation and elimination

foldrChunks :: (Text -> a -> a) -> a -> Text -> a #

foldlChunks :: (a -> Text -> a) -> a -> Text -> a #

Basic interface

cons :: Char -> Text -> Text #

snoc :: Text -> Char -> Text #

append :: Text -> Text -> Text #

null :: Text -> Bool #

Transformations

map :: (Char -> Char) -> Text -> Text #

transpose :: [Text] -> [Text] #

Case conversion

Justification

center :: Int64 -> Char -> Text -> Text #

Folds

foldl :: (a -> Char -> a) -> a -> Text -> a #

foldl' :: (a -> Char -> a) -> a -> Text -> a #

foldr :: (Char -> a -> a) -> a -> Text -> a #

Special folds

concat :: [Text] -> Text #

concatMap :: (Char -> Text) -> Text -> Text #

any :: (Char -> Bool) -> Text -> Bool #

all :: (Char -> Bool) -> Text -> Bool #

Construction

Scans

scanl :: (Char -> Char -> Char) -> Char -> Text -> Text #

scanl1 :: (Char -> Char -> Char) -> Text -> Text #

scanr :: (Char -> Char -> Char) -> Char -> Text -> Text #

scanr1 :: (Char -> Char -> Char) -> Text -> Text #

Accumulating maps

mapAccumL :: (a -> Char -> (a, Char)) -> a -> Text -> (a, Text) #

mapAccumR :: (a -> Char -> (a, Char)) -> a -> Text -> (a, Text) #

Generation and unfolding

iterate :: (Char -> Char) -> Char -> Text #

unfoldr :: (a -> Maybe (Char, a)) -> a -> Text #

unfoldrN :: Int64 -> (a -> Maybe (Char, a)) -> a -> Text #

Substrings

Breaking strings

take :: Int64 -> Text -> Text #

drop :: Int64 -> Text -> Text #

takeWhile :: (Char -> Bool) -> Text -> Text #

dropWhile :: (Char -> Bool) -> Text -> Text #

dropAround :: (Char -> Bool) -> Text -> Text #

splitAt :: Int64 -> Text -> (Text, Text) #

span :: (Char -> Bool) -> Text -> (Text, Text) #

break :: (Char -> Bool) -> Text -> (Text, Text) #

group :: Text -> [Text] #

groupBy :: (Char -> Char -> Bool) -> Text -> [Text] #

inits :: Text -> [Text] #

tails :: Text -> [Text] #

Breaking into many substrings

split :: (Char -> Bool) -> Text -> [Text] #

chunksOf :: Int64 -> Text -> [Text] #

Breaking into lines and words

lines :: Text -> [Text] #

words :: Text -> [Text] #

unlines :: [Text] -> Text #

unwords :: [Text] -> Text #

Predicates

View patterns

Searching

filter :: (Char -> Bool) -> Text -> Text #

find :: (Char -> Bool) -> Text -> Maybe Char #

partition :: (Char -> Bool) -> Text -> (Text, Text) #

Indexing

index :: Text -> Int64 -> Char #

count :: Text -> Text -> Int64 #

Zipping and unzipping

zip :: Text -> Text -> [(Char, Char)] #

zipWith :: (Char -> Char -> Char) -> Text -> Text -> Text #