cuddle-1.8.1.0: CDDL Generator and test utilities
Safe HaskellNone
LanguageGHC2021

Codec.CBOR.Cuddle.CDDL.Custom.Core

Documentation

class MonadCddl (m :: Type -> Type) where Source #

Associated Types

type Phase (m :: Type -> Type) Source #

Methods

lookupCddl :: Name -> m (Maybe (CTree (Phase m))) Source #

Look up a top-level rule by name.

lookupGRef :: GRef -> m (Maybe (CTree (Phase m))) Source #

Look up the rule bound to a generic parameter at the enclosing rule. Returns Nothing outside of a custom generator/validator that was attached to a generic rule.