rio-0.1.22.0: A standard library for Haskell

Safe Haskell | Safe-Inferred
Language | Haskell2010

RIO.Text.Lazy.Partial

Contents

- Creation and elimination
- Transformations
- Folds
  - Special folds
- Substrings
  - Breaking strings
  - Breaking into many substrings
- Searching

Description

Lazy `Text` partial functions. Import as:

    import qualified RIO.Text.Lazy.Partial as TL'

Synopsis

- head :: HasCallStack => Text -> Char
- last :: HasCallStack => Text -> Char
- tail :: HasCallStack => Text -> Text
- init :: HasCallStack => Text -> Text
- replace :: HasCallStack => Text -> Text -> Text -> Text
- foldl1 :: HasCallStack => (Char -> Char -> Char) -> Text -> Char
- foldl1' :: HasCallStack => (Char -> Char -> Char) -> Text -> Char
- foldr1 :: HasCallStack => (Char -> Char -> Char) -> Text -> Char
- maximum :: HasCallStack => Text -> Char
- minimum :: HasCallStack => Text -> Char
- breakOn :: HasCallStack => Text -> Text -> (Text, Text)
- breakOnEnd :: HasCallStack => Text -> Text -> (Text, Text)
- splitOn :: HasCallStack => Text -> Text -> [Text]
- breakOnAll :: HasCallStack => Text -> Text -> [(Text, Text)]

# Creation and elimination

head :: HasCallStack => Text -> Char #

last :: HasCallStack => Text -> Char #

tail :: HasCallStack => Text -> Text #

init :: HasCallStack => Text -> Text #

# Transformations

replace :: HasCallStack => Text -> Text -> Text -> Text #

# Folds

foldl1 :: HasCallStack => (Char -> Char -> Char) -> Text -> Char #

foldl1' :: HasCallStack => (Char -> Char -> Char) -> Text -> Char #

foldr1 :: HasCallStack => (Char -> Char -> Char) -> Text -> Char #

## Special folds

maximum :: HasCallStack => Text -> Char #

minimum :: HasCallStack => Text -> Char #

# Substrings

## Breaking strings

breakOn :: HasCallStack => Text -> Text -> (Text, Text) #

breakOnEnd :: HasCallStack => Text -> Text -> (Text, Text) #

## Breaking into many substrings

splitOn :: HasCallStack => Text -> Text -> [Text] #

# Searching

breakOnAll :: HasCallStack => Text -> Text -> [(Text, Text)] #