Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Convenience wrappers and utilities for byte strings.
Synopsis
- type BS = ByteString
- bsEmpty :: BS
- bsOnly :: Word8 -> BS
- bsLen :: BS -> Int
- bsPack :: [Word8] -> BS
- bsUnpack :: BS -> [Word8]
- bsConcat :: [BS] -> BS
- bsIndex :: BS -> Int -> Word8
- bsElemIndex :: Word8 -> BS -> Maybe Int
- bsLower :: BS -> BS
- bsPrefixCI :: BS -> BS -> Bool
- bsPart :: Int -> Int -> BS -> BS
- bsLast :: BS -> Maybe Word8
- bsTake :: Int -> BS -> BS
- bsDrop :: Int -> BS -> BS
- bsUncons :: BS -> Maybe (Word8, BS)
- bcPack :: String -> BS
- bcUnpack :: BS -> String
Documentation
type BS = ByteString Source #
A type abbreviation for a byte string.
Word functions.
bsPrefixCI :: BS -> BS -> Bool Source #
Determines if a bytestring is a case-insensitive prefix of another.