Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class ByteStringLike b where
- class IsString s => StringLike s where
- boundedBy :: (Integral idx, Integral len) => idx -> len -> Bool
- inChunksOf :: StringLike s => s -> Int -> [s]
- (<?>) :: Maybe b -> a -> Either a b
Documentation
class ByteStringLike b where Source #
Instances
ByteStringLike ByteString Source # | |
Defined in Data.BaseN.Internal cons :: Word8 -> ByteString -> ByteString Source # empty :: ByteString Source # null :: ByteString -> Bool Source # uncons :: ByteString -> Maybe (Word8, ByteString) Source # (!!) :: Integral i => ByteString -> i -> Maybe Word8 Source # | |
ByteStringLike ByteString Source # | |
Defined in Data.BaseN.Internal cons :: Word8 -> ByteString -> ByteString Source # empty :: ByteString Source # null :: ByteString -> Bool Source # uncons :: ByteString -> Maybe (Word8, ByteString) Source # (!!) :: Integral i => ByteString -> i -> Maybe Word8 Source # | |
ByteStringLike [Word8] Source # | |
class IsString s => StringLike s where Source #
Instances
StringLike String Source # | |
StringLike Text Source # | |
boundedBy :: (Integral idx, Integral len) => idx -> len -> Bool Source #
Bounded between 0 and a given i. [0, i)
inChunksOf :: StringLike s => s -> Int -> [s] Source #