HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecborg-0.2.10.0Haskell2010

Codec.CBOR.Read

Tools for reading values in a CBOR-encoded format back into ordinary values.

  • 3 types
  • 3 values
  • Packagecborg-0.2.10.0
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceRead.hs
datadata DeserialiseFailure
#

An exception type that may be returned (by pure functions) or thrown (by IO actions) that fail to deserialise a given input.

Instances4Eq, Show, Exception, NFData
datadata IDecode s a
#

An Incremental decoder, used to represent the result of attempting to run a decoder over a given input, and return a value of type a.

Constructors

typetype ByteOffset = Int64
#

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.