HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulevalidity-bytestring-0.4.1.1Haskell2010

Data.Validity.ByteString

    Orphan instances

    3 instances
    • Validity ByteString

      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?

    • Validity ByteString

      A lazy ByteString is valid according to its chunks.

    • Validity ShortByteString

      Trivially valid

      My guess is that short bytestrings are not trivially valid but there is no way to access the internals.