Skip to content

Data.ByteString.Builder.Prim.Internal advertises missing Data.ByteString.Builder.Prim.Tests module #244

@sjakobi

Description

@sjakobi

-- If you need to write your own builder primitives, then be aware that you are
-- writing code with /all saftey belts off/; i.e.,
-- *this is the code that might make your application vulnerable to buffer-overflow attacks!*
-- The "Data.ByteString.Builder.Prim.Tests" module provides you with
-- utilities for testing your encodings thoroughly.

There actually is such a module in the testsuite:

https://github.com/haskell/bytestring/blob/39ad965d17ce8253e1db5343df4ea5836d0edf1d/tests/builder/Data/ByteString/Builder/Prim/Tests.hs

Is it the one that was meant in the haddocks? I wonder whether the mentioned utilities are actually these:

https://github.com/haskell/bytestring/blob/39ad965d17ce8253e1db5343df4ea5836d0edf1d/tests/builder/Data/ByteString/Builder/Prim/TestUtils.hs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions