validity-bytestring-0.4.1.1: Validity instances for bytestring

Safe Haskell | None
Language | Haskell2010

Data.Validity.ByteString

Contents

- Orphan instances

# Orphan instances

Validity ByteString Source # | A `ByteString` is NOT trivially valid. The offset and the length both need to be positive. Note that the length does not need to be greater than, or equal to, the offset. TODO there's nothing we can do about the foreign pointer, I think?
Instance details Methods validate :: ByteString -> Validation Source #
Validity ByteString Source # | A lazy `ByteString` is valid according to its chunks.
Instance details Methods validate :: ByteString -> Validation Source #
Validity ShortByteString Source # | Trivially valid My guess is that short bytestrings are not trivially valid but there is no way to access the internals.
Instance details Methods validate :: ShortByteString -> Validation Source #