HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulecuddle-1.8.1.0GHC2021

Codec.CBOR.Cuddle.CBOR.Gen

Generate example CBOR given a CDDL specification

  • 1 type
  • 2 values
  • Packagecuddle-1.8.1.0
  • Exports20
  • LanguageGHC2021
  • LicenceApache-2.0
  • SourceGen.hs

Generate a CBOR Term corresponding to a top-level name.

Since we apply this to a monomorphised CTree, the names must be monomorphic terms in the original CDDL.

This will throw an error if the generated item does not correspond to a single CBOR term (e.g. if the name resolves to a group, which cannot be generated outside a context).

datadata GenPhase
#
Instances5IndexMappable, XXCTree
data familydata family XXCTree i
#
Instances19Eq, Show, Generic, Pretty, Hashable, Rep, …
constructorDHRef (DistRef DistReferencedNoGen)
#
constructorDRef (DistRef DistReferenced)
#
constructorOrRef Name [CTree OrReferenced]
#

Reference to another node with possible generic arguments supplied