Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
anyAsciiDecimalWord :: forall (st :: ZeroBitType) e . ParserT st e Wordflatparse FlatParse.Basic Parse a non-empty ASCII decimal digit sequence as a Word. Fails on overflow.
anyAsciiHexInt :: forall (st :: ZeroBitType) e . ParserT st e Intflatparse FlatParse.Basic Parse a non-empty, case-insensitive ASCII hexadecimal digit sequence as a positive Int. Fails on overflow.
anyAsciiHexWord :: forall (st :: ZeroBitType) e . ParserT st e Wordflatparse FlatParse.Basic Parse a non-empty, case-insensitive ASCII hexadecimal digit sequence as a Word. Fails on overflow.
anyCString :: forall (st :: ZeroBitType) e . ParserT st e ByteStringflatparse FlatParse.Basic Read a null-terminated bytestring (a C-style string). Consumes the null terminator.
anyCStringUnsafe :: forall (st :: ZeroBitType) e . ParserT st e ByteStringflatparse FlatParse.Basic Read a null-terminated bytestring (a C-style string), where the bytestring is known to be null-terminated somewhere in the input. Highly unsafe. Unless you have a guarantee that the string will be null terminated before the input ends, use anyCString instead. Honestly, I'm not sure if this is a good function to define. But here it is. Fails on GHC versions older than 9.0, since we make use of the cstringLength# primop introduced in GHC 9.0, and we aren't very useful without it. Consumes the null terminator.
anyChar :: forall (st :: ZeroBitType) e . ParserT st e Charflatparse FlatParse.Basic Parse any single Unicode character encoded using UTF-8 as a Char.
anyVarintProtobuf :: forall (st :: ZeroBitType) e . ParserT st e Intflatparse FlatParse.Basic Read a protobuf-style varint into a positive Int. protobuf-style varints are byte-aligned. For each byte, the lower 7 bits are data and the MSB indicates if there are further bytes. Once fully parsed, the 7-bit payloads are concatenated and interpreted as a little-endian unsigned integer. Fails if the varint exceeds the positive Int range. Really, these are varnats. They also match with the LEB128 varint encoding. protobuf encodes negatives in unsigned integers using zigzag encoding. See the fromZigzag family of functions for this functionality. Further reading: https://developers.google.com/protocol-buffers/docs/encoding#varints
anyInt :: forall (st :: ZeroBitType) e . ParserT st e Intflatparse FlatParse.Basic.Integers Parse any Int (native size).
anyInt16 :: forall (st :: ZeroBitType) e . ParserT st e Int16flatparse FlatParse.Basic.Integers Parse any Int16 (native byte order).
anyInt16be :: forall (st :: ZeroBitType) e . ParserT st e Int16flatparse FlatParse.Basic.Integers Parse any Int16 (big-endian).