rio-0.1.22.0: A standard library for Haskell

Safe Haskell | Safe-Inferred
Language | Haskell2010

RIO.ByteString.Partial

Contents

- Basic interface
- Reducing `ByteString`s (folds)
- Special folds

Description

Strict `ByteString` partial functions. Import as:

    import qualified RIO.ByteString.Partial as B'

Synopsis

- head :: HasCallStack => ByteString -> Word8
- last :: HasCallStack => ByteString -> Word8
- tail :: HasCallStack => ByteString -> ByteString
- init :: HasCallStack => ByteString -> ByteString
- foldl1 :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- foldl1' :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- foldr1 :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- foldr1' :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- maximum :: HasCallStack => ByteString -> Word8
- minimum :: HasCallStack => ByteString -> Word8

# Basic interface

head :: HasCallStack => ByteString -> Word8 #

last :: HasCallStack => ByteString -> Word8 #

tail :: HasCallStack => ByteString -> ByteString #

init :: HasCallStack => ByteString -> ByteString #

# Reducing `ByteString`s (folds)

foldl1 :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

foldl1' :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

foldr1 :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

foldr1' :: HasCallStack => (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

# Special folds

maximum :: HasCallStack => ByteString -> Word8 #

minimum :: HasCallStack => ByteString -> Word8 #