Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
cborg Codec.CBOR.Decoding A 0-based offset within the overall byte sequence that makes up the input to the Decoder. This is an Int64 since Decoder is incremental and can decode more data than fits in memory at once. This is also compatible with the result type of length.
PeekByteOffset :: (Int# -> ST s (DecodeAction s a)) -> DecodeAction s acborg Codec.CBOR.Decoding No documentation available.
peekByteOffset :: Decoder s ByteOffsetcborg Codec.CBOR.Decoding Get the current ByteOffset in the input byte sequence of the Decoder. The Decoder does not provide any facility to get at the input data directly (since that is tricky with an incremental decoder). The next best is this primitive which can be used to keep track of the offset within the input bytes that makes up the encoded form of a term. By keeping track of the byte offsets before and after decoding a subterm (a pattern captured by decodeWithByteSpan) and if the overall input data is retained then this is enables later retrieving the span of bytes for the subterm.
-
cborg Codec.CBOR.Read A 0-based offset within the overall byte sequence that makes up the input to the Decoder. This is an Int64 since Decoder is incremental and can decode more data than fits in memory at once. This is also compatible with the result type of length.
-
Fast unicode character sets based on complemented PATRICIA tries Fast unicode character sets based on complemented PATRICIA tries.
-
A CharSet is an efficient representation of a set of Char values designed for fast membership tests. As an example build isAlpha will create a set of alphabetic characters. We can then use member on the generated set to efficiently test if a given Char represents an alphabetic character. Designed to be imported qualified:
import Data.CharSet (CharSet) import qualified Data.CharSet as CharSet
-
charset Data.CharSet Stored as a (possibly negated) IntSet and a fast set used for the head byte. The set of valid (possibly negated) head bytes is stored unboxed as a 32-byte bytestring-based lookup table.
CharSet :: Bool -> ByteSet -> IntSet -> CharSetcharset Data.CharSet No documentation available.
fromCharSet :: CharSet -> (Bool, IntSet)charset Data.CharSet No documentation available.
isSubsetOf :: CharSet -> CharSet -> Boolcharset Data.CharSet No documentation available.