validity-bytestring-0.4.0.0: Validity instances for bytestring

Safe HaskellNone
LanguageHaskell2010

Data.Validity.ByteString

Contents

Orphan instances

Validity ByteString Source #

A lazy ByteString is valid according to its chunks.

Instance details

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