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.

  1. anyAsciiDecimalWord :: forall (st :: ZeroBitType) e . ParserT st e Word

    flatparse FlatParse.Basic

    Parse a non-empty ASCII decimal digit sequence as a Word. Fails on overflow.

  2. anyAsciiHexInt :: forall (st :: ZeroBitType) e . ParserT st e Int

    flatparse FlatParse.Basic

    Parse a non-empty, case-insensitive ASCII hexadecimal digit sequence as a positive Int. Fails on overflow.

  3. anyAsciiHexWord :: forall (st :: ZeroBitType) e . ParserT st e Word

    flatparse FlatParse.Basic

    Parse a non-empty, case-insensitive ASCII hexadecimal digit sequence as a Word. Fails on overflow.

  4. anyCString :: forall (st :: ZeroBitType) e . ParserT st e ByteString

    flatparse FlatParse.Basic

    Read a null-terminated bytestring (a C-style string). Consumes the null terminator.

  5. anyCStringUnsafe :: forall (st :: ZeroBitType) e . ParserT st e ByteString

    flatparse 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.

  6. anyChar :: forall (st :: ZeroBitType) e . ParserT st e Char

    flatparse FlatParse.Basic

    Parse any single Unicode character encoded using UTF-8 as a Char.

  7. anyVarintProtobuf :: forall (st :: ZeroBitType) e . ParserT st e Int

    flatparse 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

  8. anyInt :: forall (st :: ZeroBitType) e . ParserT st e Int

    flatparse FlatParse.Basic.Integers

    Parse any Int (native size).

  9. anyInt16 :: forall (st :: ZeroBitType) e . ParserT st e Int16

    flatparse FlatParse.Basic.Integers

    Parse any Int16 (native byte order).

  10. anyInt16be :: forall (st :: ZeroBitType) e . ParserT st e Int16

    flatparse FlatParse.Basic.Integers

    Parse any Int16 (big-endian).

Page 58 of many | Previous | Next