Modulevalidity-bytestring-0.4.1.1Haskell2010
Data.Validity.ByteString
- Packagevalidity-bytestring-0.4.1.1
- Exports0
- LanguageHaskell2010
- LicenceMIT
Orphan instances
3 instancesValidity ByteStringA
ByteStringis 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?
Validity ByteStringA lazy
ByteStringis valid according to its chunks.Validity ShortByteStringTrivially valid
My guess is that short bytestrings are not trivially valid but there is no way to access the internals.