-
Notifications
You must be signed in to change notification settings - Fork 52
Description
I want to parse the raw Uint8 bytes of a Javascript ArrayBuffer. You know, like the ByteString instance for Megaparsec Streams, or Data.Attoparsec.ByteString.
Is there a good way to do this in Purescript? I can't find it. If this doesn't exist, maybe we could add a new module to purescript-parsing called Text.Parsing.Parser.ArrayBuffer? It seems like purescript-parsing was designed to be extended in this way.
This module would be a peer of Text.Parsing.Parser.String and Text.Parsing.Parser.Token, and similarly constructed.
Or maybe this would be better as a separate library, since it would add some new dependencies:
https://pursuit.purescript.org/packages/purescript-arraybuffer
https://pursuit.purescript.org/packages/purescript-arraybuffer-types
Thoughts?