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

Codec.CBOR.Cuddle.CDDL

Description

This module defined the data structure of CDDL as specified in https://datatracker.ietf.org/doc/rfc8610/

Synopsis

Documentation

data CDDL i Source #

The CDDL constructor takes three arguments: 1. Top level comments that precede the first definition 2. The root definition 3. All the other top level comments and definitions This ensures that CDDL is correct by construction.

Constructors

CDDL 

Fields

Instances

Instances details
(IndexMappable XCddl i j, IndexMappable XXTopLevel i j, IndexMappable XXType2 i j, IndexMappable XTerm i j, IndexMappable XRule i j) => IndexMappable CDDL (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Methods

mapIndex :: CDDL i -> CDDL j Source #

Generic (CDDL i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (CDDL i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (CDDL i) = D1 ('MetaData "CDDL" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "CDDL" 'PrefixI 'True) (S1 ('MetaSel ('Just "rootDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Rule i)) :*: (S1 ('MetaSel ('Just "topLevelDefinitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TopLevel i]) :*: S1 ('MetaSel ('Just "cddlExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [XXTopLevel i]))))

Methods

from :: CDDL i -> Rep (CDDL i) x #

to :: Rep (CDDL i) x -> CDDL i #

ForAllExtensions i Show => Show (CDDL i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> CDDL i -> ShowS #

show :: CDDL i -> String #

showList :: [CDDL i] -> ShowS #

ForAllExtensions i Eq => Eq (CDDL i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: CDDL i -> CDDL i -> Bool #

(/=) :: CDDL i -> CDDL i -> Bool #

Pretty (CDDL PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Methods

pretty :: CDDL PrettyStage -> Doc ann #

prettyList :: [CDDL PrettyStage] -> Doc ann #

ForAllExtensions i ToExpr => ToExpr (CDDL i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: CDDL i -> Expr #

listToExpr :: [CDDL i] -> Expr #

type Rep (CDDL i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (CDDL i) = D1 ('MetaData "CDDL" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "CDDL" 'PrefixI 'True) (S1 ('MetaSel ('Just "rootDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Rule i)) :*: (S1 ('MetaSel ('Just "topLevelDefinitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TopLevel i]) :*: S1 ('MetaSel ('Just "cddlExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [XXTopLevel i]))))

sortCDDL :: CDDL i -> NonEmpty (Rule i) Source #

Sort the CDDL Rules on the basis of their names

fromRule :: Monoid (XCddl i) => Rule i -> CDDL i Source #

appendRules :: CDDL i -> [Rule i] -> CDDL i Source #

data TopLevel i Source #

Constructors

TopLevelRule (Rule i) 
XXTopLevel (XXTopLevel i) 

Instances

Instances details
(IndexMappable XXTopLevel i j, IndexMappable XXType2 i j, IndexMappable XTerm i j, IndexMappable XRule i j) => IndexMappable TopLevel (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Methods

mapIndex :: TopLevel i -> TopLevel j Source #

Generic (TopLevel i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (TopLevel i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (TopLevel i) = D1 ('MetaData "TopLevel" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "TopLevelRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Rule i))) :+: C1 ('MetaCons "XXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XXTopLevel i))))

Methods

from :: TopLevel i -> Rep (TopLevel i) x #

to :: Rep (TopLevel i) x -> TopLevel i #

ForAllExtensions i Show => Show (TopLevel i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> TopLevel i -> ShowS #

show :: TopLevel i -> String #

showList :: [TopLevel i] -> ShowS #

ForAllExtensions i Eq => Eq (TopLevel i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: TopLevel i -> TopLevel i -> Bool #

(/=) :: TopLevel i -> TopLevel i -> Bool #

Pretty (TopLevel PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ForAllExtensions i ToExpr => ToExpr (TopLevel i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: TopLevel i -> Expr #

listToExpr :: [TopLevel i] -> Expr #

type Rep (TopLevel i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (TopLevel i) = D1 ('MetaData "TopLevel" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "TopLevelRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Rule i))) :+: C1 ('MetaCons "XXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XXTopLevel i))))

newtype Name Source #

A name can consist of any of the characters from the set {A to Z, "a" to "z", "0" to "9", "_", "-", "", ".", "$"}, starting with an alphabetic character (including "", "_", "$") and ending in such a character or a digit.

  • Names are case sensitive.
  • It is preferred style to start a name with a lowercase letter.
  • The hyphen is preferred over the underscore (except in a "bareword" (Section 3.5.1), where the semantics may actually require an underscore).
  • The period may be useful for larger specifications, to express some module structure (as in "tcp.throughput" vs. "udp.throughput").
  • A number of names are predefined in the CDDL prelude, as listed in Appendix D.
  • Rule names (types or groups) do not appear in the actual CBOR encoding, but names used as "barewords" in member keys do.

Constructors

Name 

Fields

Instances

Instances details
IsString Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

fromString :: String -> Name #

Monoid Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

mempty :: Name #

mappend :: Name -> Name -> Name #

mconcat :: [Name] -> Name #

Semigroup Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(<>) :: Name -> Name -> Name #

sconcat :: NonEmpty Name -> Name #

stimes :: Integral b => b -> Name -> Name #

Generic Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep Name 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep Name = D1 ('MetaData "Name" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "Name" 'PrefixI 'True) (S1 ('MetaSel ('Just "unName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Methods

from :: Name -> Rep Name x #

to :: Rep Name x -> Name #

Show Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

HasName Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

getName :: Name -> Name Source #

CollectComments Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Eq Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Name -> Name -> Bool #

(/=) :: Name -> Name -> Bool #

Ord Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

compare :: Name -> Name -> Ordering #

(<) :: Name -> Name -> Bool #

(<=) :: Name -> Name -> Bool #

(>) :: Name -> Name -> Bool #

(>=) :: Name -> Name -> Bool #

max :: Name -> Name -> Name #

min :: Name -> Name -> Name #

Hashable Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

hashWithSalt :: Int -> Name -> Int #

hash :: Name -> Int #

Pretty Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Methods

pretty :: Name -> Doc ann #

prettyList :: [Name] -> Doc ann #

ToExpr Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Name -> Expr #

listToExpr :: [Name] -> Expr #

type Rep Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep Name = D1 ('MetaData "Name" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "Name" 'PrefixI 'True) (S1 ('MetaSel ('Just "unName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Rule i Source #

rule = typename [genericparm] S assignt S type / groupname [genericparm] S assigng S grpent

typename = id groupname = id

A rule defines a name for a type expression (production "type") or for a group expression (production "grpent"), with the intention that the semantics does not change when the name is replaced by its (parenthesized if needed) definition. Note that whether the name defined by a rule stands for a type or a group isn't always determined by syntax alone: e.g., "a = b" can make "a" a type if "b" is a type, or a group if "b" is a group. More subtly, in "a = (b)", "a" may be used as a type if "b" is a type, or as a group both when "b" is a group and when "b" is a type (a good convention to make the latter case stand out to the human reader is to write "a = (b,)"). (Note that the same dual meaning of parentheses applies within an expression but often can be resolved by the context of the parenthesized expression. On the more general point, it may not be clear immediately either whether "b" stands for a group or a type -- this semantic processing may need to span several levels of rule definitions before a determination can be made.)

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j, IndexMappable XRule i j) => IndexMappable Rule (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Methods

mapIndex :: Rule i -> Rule j Source #

Generic (Rule i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (Rule i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Rule i) = D1 ('MetaData "Rule" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "Rule" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ruleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "ruleGenParam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericParameters i)))) :*: (S1 ('MetaSel ('Just "ruleAssign") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Assign) :*: (S1 ('MetaSel ('Just "ruleTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TypeOrGroup i)) :*: S1 ('MetaSel ('Just "ruleExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XRule i))))))

Methods

from :: Rule i -> Rep (Rule i) x #

to :: Rep (Rule i) x -> Rule i #

ForAllExtensions i Show => Show (Rule i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> Rule i -> ShowS #

show :: Rule i -> String #

showList :: [Rule i] -> ShowS #

HasComment (XRule i) => HasComment (Rule i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (Rule i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Rule i -> Rule i -> Bool #

(/=) :: Rule i -> Rule i -> Bool #

Pretty (Rule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Methods

pretty :: Rule PrettyStage -> Doc ann #

prettyList :: [Rule PrettyStage] -> Doc ann #

ForAllExtensions i ToExpr => ToExpr (Rule i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Rule i -> Expr #

listToExpr :: [Rule i] -> Expr #

type Rep (Rule i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Rule i) = D1 ('MetaData "Rule" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "Rule" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ruleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "ruleGenParam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericParameters i)))) :*: (S1 ('MetaSel ('Just "ruleAssign") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Assign) :*: (S1 ('MetaSel ('Just "ruleTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TypeOrGroup i)) :*: S1 ('MetaSel ('Just "ruleExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XRule i))))))

data TypeOrGroup i Source #

Constructors

TOGType (Type0 i) 
TOGGroup (GroupEntry i) 

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable TypeOrGroup (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Generic (TypeOrGroup i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (TypeOrGroup i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (TypeOrGroup i) = D1 ('MetaData "TypeOrGroup" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "TOGType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type0 i))) :+: C1 ('MetaCons "TOGGroup" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GroupEntry i))))

Methods

from :: TypeOrGroup i -> Rep (TypeOrGroup i) x #

to :: Rep (TypeOrGroup i) x -> TypeOrGroup i #

ForAllExtensions i Show => Show (TypeOrGroup i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i CollectComments => CollectComments (TypeOrGroup i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (TypeOrGroup i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i ToExpr => ToExpr (TypeOrGroup i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (TypeOrGroup i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (TypeOrGroup i) = D1 ('MetaData "TypeOrGroup" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "TOGType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type0 i))) :+: C1 ('MetaCons "TOGGroup" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GroupEntry i))))

data Assign Source #

assignt = "=" "=" assigng = "=" "/="

A plain equals sign defines the rule name as the equivalent of the expression to the right; it is an error if the name was already defined with a different expression. A "=" or "/=" extends a named type or a group by additional choices; a number of these could be replaced by collecting all the right-hand sides and creating a single rule with a type choice or a group choice built from the right-hand sides in the order of the rules given. (It is not an error to extend a rule name that has not yet been defined; this makes the right-hand side the first entry in the choice being created.)

Constructors

AssignEq 
AssignExt 

Instances

Instances details
Generic Assign Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep Assign 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep Assign = D1 ('MetaData "Assign" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "AssignEq" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AssignExt" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: Assign -> Rep Assign x #

to :: Rep Assign x -> Assign #

Show Assign Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Eq Assign Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Assign -> Assign -> Bool #

(/=) :: Assign -> Assign -> Bool #

ToExpr Assign Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Assign -> Expr #

listToExpr :: [Assign] -> Expr #

type Rep Assign Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep Assign = D1 ('MetaData "Assign" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "AssignEq" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AssignExt" 'PrefixI 'False) (U1 :: Type -> Type))

newtype GenericArg i Source #

Constructors

GenericArg (NonEmpty (Type1 i)) 

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable GenericArg (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Semigroup (GenericArg i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Generic (GenericArg i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (GenericArg i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericArg i) = D1 ('MetaData "GenericArg" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "GenericArg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Type1 i)))))

Methods

from :: GenericArg i -> Rep (GenericArg i) x #

to :: Rep (GenericArg i) x -> GenericArg i #

ForAllExtensions i Show => Show (GenericArg i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i CollectComments => CollectComments (GenericArg i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (GenericArg i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: GenericArg i -> GenericArg i -> Bool #

(/=) :: GenericArg i -> GenericArg i -> Bool #

Pretty (GenericArg PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ForAllExtensions i ToExpr => ToExpr (GenericArg i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: GenericArg i -> Expr #

listToExpr :: [GenericArg i] -> Expr #

type Rep (GenericArg i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericArg i) = D1 ('MetaData "GenericArg" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "GenericArg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Type1 i)))))

newtype GenericParameters i Source #

Generics

Using angle brackets, the left-hand side of a rule can add formal parameters after the name being defined, as in:

messages = message"now" / message1..100 messagev = {type: t, value: v}

When using a generic rule, the formal parameters are bound to the actual arguments supplied (also using angle brackets), within the scope of the generic rule (as if there were a rule of the form parameter = argument).

Generic rules can be used for establishing names for both types and groups.

Instances

Instances details
IndexMappable XTerm i j => IndexMappable GenericParameters (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Semigroup (GenericParameters i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Generic (GenericParameters i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (GenericParameters i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericParameters i) = D1 ('MetaData "GenericParameters" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "GenericParameters" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (GenericParameter i)))))
Show (XTerm i) => Show (GenericParameters i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Eq (XTerm i) => Eq (GenericParameters i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Pretty (GenericParameters PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ToExpr (XTerm i) => ToExpr (GenericParameters i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericParameters i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericParameters i) = D1 ('MetaData "GenericParameters" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "GenericParameters" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (GenericParameter i)))))

data GenericParameter i Source #

Constructors

GenericParameter 

Fields

Instances

Instances details
IndexMappable XTerm i j => IndexMappable GenericParameter (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Generic (GenericParameter i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (GenericParameter i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericParameter i) = D1 ('MetaData "GenericParameter" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "GenericParameter" 'PrefixI 'True) (S1 ('MetaSel ('Just "gpName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "gpExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i))))
Show (XTerm i) => Show (GenericParameter i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

CollectComments (XTerm i) => CollectComments (GenericParameter i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

HasComment (XTerm i) => HasComment (GenericParameter i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Eq (XTerm i) => Eq (GenericParameter i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Pretty (GenericParameter PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ToExpr (XTerm i) => ToExpr (GenericParameter i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericParameter i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GenericParameter i) = D1 ('MetaData "GenericParameter" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "GenericParameter" 'PrefixI 'True) (S1 ('MetaSel ('Just "gpName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "gpExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i))))

newtype Type0 i Source #

A type can be given as a choice between one or more types. The choice matches a data item if the data item matches any one of the types given in the choice.

Constructors

Type0 

Fields

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable Type0 (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Methods

mapIndex :: Type0 i -> Type0 j Source #

Semigroup (Type0 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(<>) :: Type0 i -> Type0 i -> Type0 i #

sconcat :: NonEmpty (Type0 i) -> Type0 i #

stimes :: Integral b => b -> Type0 i -> Type0 i #

Generic (Type0 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (Type0 i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Type0 i) = D1 ('MetaData "Type0" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "Type0" 'PrefixI 'True) (S1 ('MetaSel ('Just "t0Type1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Type1 i)))))

Methods

from :: Type0 i -> Rep (Type0 i) x #

to :: Rep (Type0 i) x -> Type0 i #

ForAllExtensions i Show => Show (Type0 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> Type0 i -> ShowS #

show :: Type0 i -> String #

showList :: [Type0 i] -> ShowS #

ForAllExtensions i CollectComments => CollectComments (Type0 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (Type0 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Type0 i -> Type0 i -> Bool #

(/=) :: Type0 i -> Type0 i -> Bool #

Pretty (Type0 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ForAllExtensions i ToExpr => ToExpr (Type0 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Type0 i -> Expr #

listToExpr :: [Type0 i] -> Expr #

type Rep (Type0 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Type0 i) = D1 ('MetaData "Type0" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "Type0" 'PrefixI 'True) (S1 ('MetaSel ('Just "t0Type1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Type1 i)))))

data Type1 i Source #

Two types can be combined with a range operator (see below)

Constructors

Type1 

Fields

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable Type1 (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Methods

mapIndex :: Type1 i -> Type1 j Source #

Generic (Type1 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (Type1 i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Type1 i) = D1 ('MetaData "Type1" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "Type1" 'PrefixI 'True) (S1 ('MetaSel ('Just "t1Main") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type2 i)) :*: (S1 ('MetaSel ('Just "t1TyOp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (TyOp, Type2 i))) :*: S1 ('MetaSel ('Just "t1Comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i)))))

Methods

from :: Type1 i -> Rep (Type1 i) x #

to :: Rep (Type1 i) x -> Type1 i #

ForAllExtensions i Show => Show (Type1 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> Type1 i -> ShowS #

show :: Type1 i -> String #

showList :: [Type1 i] -> ShowS #

ForAllExtensions i CollectComments => CollectComments (Type1 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

HasComment (XTerm i) => HasComment (Type1 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (Type1 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Type1 i -> Type1 i -> Bool #

(/=) :: Type1 i -> Type1 i -> Bool #

Pretty (Type1 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ForAllExtensions i ToExpr => ToExpr (Type1 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Type1 i -> Expr #

listToExpr :: [Type1 i] -> Expr #

type Rep (Type1 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Type1 i) = D1 ('MetaData "Type1" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "Type1" 'PrefixI 'True) (S1 ('MetaSel ('Just "t1Main") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type2 i)) :*: (S1 ('MetaSel ('Just "t1TyOp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (TyOp, Type2 i))) :*: S1 ('MetaSel ('Just "t1Comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i)))))

data Type2 i Source #

Constructors

T2Value Value

A type can be just a single value (such as 1 or "icecream" or h'0815'), which matches only a data item with that specific value (no conversions defined),

T2Name Name (Maybe (GenericArg i))

or be defined by a rule giving a meaning to a name (possibly after supplying generic arguments as required by the generic parameters)

T2Group (Type0 i)

or be defined in a parenthesized type expression (parentheses may be necessary to override some operator precedence),

T2Map (Group i)

a map expression, which matches a valid CBOR map the key/value pairs of which can be ordered in such a way that the resulting sequence matches the group expression, or

T2Array (Group i)

an array expression, which matches a CBOR array the elements of which when taken as values and complemented by a wildcard (matches anything) key each -- match the group, or

T2Unwrapped Name (Maybe (GenericArg i))

an "unwrapped" group (see Section 3.7), which matches the group inside a type defined as a map or an array by wrapping the group, or

T2Enum (Group i)

an enumeration expression, which matches any value that is within the set of values that the values of the group given can take, or

T2EnumRef Name (Maybe (GenericArg i)) 
T2Tag (Maybe Word64) (Type0 i)

a tagged data item, tagged with the "uint" given and containing the type given as the tagged value, or

T2DataItem Word8 (Maybe Word64)

a data item of a major type (given by the DIGIT), optionally constrained to the additional information given by the uint, or

T2Any

Any data item

XXType2 (XXType2 i) 

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable Type2 (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Methods

mapIndex :: Type2 i -> Type2 j Source #

Generic (Type2 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (Type2 i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Type2 i) = D1 ('MetaData "Type2" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (((C1 ('MetaCons "T2Value" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)) :+: (C1 ('MetaCons "T2Name" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericArg i)))) :+: C1 ('MetaCons "T2Group" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type0 i))))) :+: (C1 ('MetaCons "T2Map" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Group i))) :+: (C1 ('MetaCons "T2Array" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Group i))) :+: C1 ('MetaCons "T2Unwrapped" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericArg i))))))) :+: ((C1 ('MetaCons "T2Enum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Group i))) :+: (C1 ('MetaCons "T2EnumRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericArg i)))) :+: C1 ('MetaCons "T2Tag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type0 i))))) :+: (C1 ('MetaCons "T2DataItem" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64))) :+: (C1 ('MetaCons "T2Any" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "XXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XXType2 i)))))))

Methods

from :: Type2 i -> Rep (Type2 i) x #

to :: Rep (Type2 i) x -> Type2 i #

ForAllExtensions i Show => Show (Type2 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> Type2 i -> ShowS #

show :: Type2 i -> String #

showList :: [Type2 i] -> ShowS #

ForAllExtensions i CollectComments => CollectComments (Type2 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (Type2 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Type2 i -> Type2 i -> Bool #

(/=) :: Type2 i -> Type2 i -> Bool #

Pretty (Type2 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ForAllExtensions i ToExpr => ToExpr (Type2 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Type2 i -> Expr #

listToExpr :: [Type2 i] -> Expr #

type Rep (Type2 i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Type2 i) = D1 ('MetaData "Type2" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (((C1 ('MetaCons "T2Value" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)) :+: (C1 ('MetaCons "T2Name" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericArg i)))) :+: C1 ('MetaCons "T2Group" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type0 i))))) :+: (C1 ('MetaCons "T2Map" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Group i))) :+: (C1 ('MetaCons "T2Array" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Group i))) :+: C1 ('MetaCons "T2Unwrapped" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericArg i))))))) :+: ((C1 ('MetaCons "T2Enum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Group i))) :+: (C1 ('MetaCons "T2EnumRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (GenericArg i)))) :+: C1 ('MetaCons "T2Tag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type0 i))))) :+: (C1 ('MetaCons "T2DataItem" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64))) :+: (C1 ('MetaCons "T2Any" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "XXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XXType2 i)))))))

data TyOp Source #

Instances

Instances details
Generic TyOp Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep TyOp 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep TyOp = D1 ('MetaData "TyOp" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "RangeOp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RangeBound)) :+: C1 ('MetaCons "CtrlOp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CtlOp)))

Methods

from :: TyOp -> Rep TyOp x #

to :: Rep TyOp x -> TyOp #

Show TyOp Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> TyOp -> ShowS #

show :: TyOp -> String #

showList :: [TyOp] -> ShowS #

Eq TyOp Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: TyOp -> TyOp -> Bool #

(/=) :: TyOp -> TyOp -> Bool #

Pretty TyOp Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Methods

pretty :: TyOp -> Doc ann #

prettyList :: [TyOp] -> Doc ann #

ToExpr TyOp Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: TyOp -> Expr #

listToExpr :: [TyOp] -> Expr #

type Rep TyOp Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep TyOp = D1 ('MetaData "TyOp" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "RangeOp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RangeBound)) :+: C1 ('MetaCons "CtrlOp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CtlOp)))

data RangeBound Source #

A range operator can be used to join two type expressions that stand for either two integer values or two floating-point values; it matches any value that is between the two values, where the first value is always included in the matching set and the second value is included for ".." and excluded for "...".

Constructors

ClOpen 
Closed 

Instances

Instances details
Generic RangeBound Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep RangeBound 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep RangeBound = D1 ('MetaData "RangeBound" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "ClOpen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Closed" 'PrefixI 'False) (U1 :: Type -> Type))
Show RangeBound Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Eq RangeBound Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Hashable RangeBound Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ToExpr RangeBound Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep RangeBound Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep RangeBound = D1 ('MetaData "RangeBound" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "ClOpen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Closed" 'PrefixI 'False) (U1 :: Type -> Type))

data OccurrenceIndicator Source #

An optional _occurrence_ indicator can be given in front of a group entry. It is either (1) one of the characters "?" (optional), "*" (zero or more), or "+" (one or more) or (2) of the form n*m, where n and m are optional unsigned integers and n is the lower limit (default 0) and m is the upper limit (default no limit) of occurrences.

If no occurrence indicator is specified, the group entry is to occur exactly once (as if 1*1 were specified). A group entry with an occurrence indicator matches sequences of name/value pairs that are composed by concatenating a number of sequences that the basic group entry matches, where the number needs to be allowed by the occurrence indicator.

Instances

Instances details
Generic OccurrenceIndicator Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep OccurrenceIndicator 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep OccurrenceIndicator = D1 ('MetaData "OccurrenceIndicator" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) ((C1 ('MetaCons "OIOptional" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OIZeroOrMore" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OIOneOrMore" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OIBounded" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)))))
Show OccurrenceIndicator Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Eq OccurrenceIndicator Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Hashable OccurrenceIndicator Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Pretty OccurrenceIndicator Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ToExpr OccurrenceIndicator Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep OccurrenceIndicator Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep OccurrenceIndicator = D1 ('MetaData "OccurrenceIndicator" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) ((C1 ('MetaCons "OIOptional" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OIZeroOrMore" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OIOneOrMore" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OIBounded" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)))))

newtype Group i Source #

A group matches any sequence of key/value pairs that matches any of the choices given (again using PEG semantics).

Constructors

Group 

Fields

Instances

Instances details
(IndexMappable XTerm i j, IndexMappable XXType2 i j) => IndexMappable Group (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Methods

mapIndex :: Group i -> Group j Source #

Semigroup (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(<>) :: Group i -> Group i -> Group i #

sconcat :: NonEmpty (Group i) -> Group i #

stimes :: Integral b => b -> Group i -> Group i #

Generic (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (Group i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Group i) = D1 ('MetaData "Group" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "Group" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (GrpChoice i)))))

Methods

from :: Group i -> Rep (Group i) x #

to :: Rep (Group i) x -> Group i #

ForAllExtensions i Show => Show (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> Group i -> ShowS #

show :: Group i -> String #

showList :: [Group i] -> ShowS #

ForAllExtensions i CollectComments => CollectComments (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

HasComment (XTerm i) => HasComment (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Group i -> Group i -> Bool #

(/=) :: Group i -> Group i -> Bool #

ForAllExtensions i ToExpr => ToExpr (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Group i -> Expr #

listToExpr :: [Group i] -> Expr #

type Rep (Group i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (Group i) = D1 ('MetaData "Group" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "Group" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (GrpChoice i)))))

data GroupEntry i Source #

A group entry can be given by a value type, which needs to be matched by the value part of a single element; and, optionally, a memberkey type, which needs to be matched by the key part of the element, if the memberkey is given. If the memberkey is not given, the entry can only be used for matching arrays, not for maps. (See below for how that is modified by the occurrence indicator.)

Instances

Instances details
(IndexMappable XTerm i j, IndexMappable XXType2 i j) => IndexMappable GroupEntry (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Generic (GroupEntry i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (GroupEntry i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GroupEntry i) = D1 ('MetaData "GroupEntry" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "GroupEntry" 'PrefixI 'True) (S1 ('MetaSel ('Just "geOccurrenceIndicator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe OccurrenceIndicator)) :*: (S1 ('MetaSel ('Just "geVariant") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GroupEntryVariant i)) :*: S1 ('MetaSel ('Just "geExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i)))))

Methods

from :: GroupEntry i -> Rep (GroupEntry i) x #

to :: Rep (GroupEntry i) x -> GroupEntry i #

ForAllExtensions i Show => Show (GroupEntry i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i CollectComments => CollectComments (GroupEntry i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

HasComment (XTerm i) => HasComment (GroupEntry i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (GroupEntry i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: GroupEntry i -> GroupEntry i -> Bool #

(/=) :: GroupEntry i -> GroupEntry i -> Bool #

Pretty (GroupEntry PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ForAllExtensions i ToExpr => ToExpr (GroupEntry i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: GroupEntry i -> Expr #

listToExpr :: [GroupEntry i] -> Expr #

type Rep (GroupEntry i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GroupEntry i) = D1 ('MetaData "GroupEntry" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "GroupEntry" 'PrefixI 'True) (S1 ('MetaSel ('Just "geOccurrenceIndicator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe OccurrenceIndicator)) :*: (S1 ('MetaSel ('Just "geVariant") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GroupEntryVariant i)) :*: S1 ('MetaSel ('Just "geExt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i)))))

data GroupEntryVariant i Source #

Constructors

GEType (Maybe (MemberKey i)) (Type0 i) 
GERef Name (Maybe (GenericArg i)) 
GEGroup (Group i) 

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable GroupEntryVariant (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Generic (GroupEntryVariant i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Show => Show (GroupEntryVariant i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i CollectComments => CollectComments (GroupEntryVariant i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (GroupEntryVariant i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i ToExpr => ToExpr (GroupEntryVariant i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GroupEntryVariant i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

data MemberKey i Source #

Key types can be given by a type expression, a bareword (which stands for a type that just contains a string value created from this bareword), or a value (which stands for a type that just contains this value). A key value matches its key type if the key value is a member of the key type, unless a cut preceding it in the group applies (see Section 3.5.4 for how map matching is influenced by the presence of the cuts denoted by "^" or ":" in previous entries).

Constructors

MKType (Type1 i) 
MKBareword Name 
MKValue Value 

Instances

Instances details
(IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable MemberKey (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Generic (MemberKey i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (MemberKey i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (MemberKey i) = D1 ('MetaData "MemberKey" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "MKType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type1 i))) :+: (C1 ('MetaCons "MKBareword" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :+: C1 ('MetaCons "MKValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value))))

Methods

from :: MemberKey i -> Rep (MemberKey i) x #

to :: Rep (MemberKey i) x -> MemberKey i #

ForAllExtensions i Show => Show (MemberKey i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (MemberKey i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: MemberKey i -> MemberKey i -> Bool #

(/=) :: MemberKey i -> MemberKey i -> Bool #

Pretty (MemberKey PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ForAllExtensions i ToExpr => ToExpr (MemberKey i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: MemberKey i -> Expr #

listToExpr :: [MemberKey i] -> Expr #

type Rep (MemberKey i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (MemberKey i) = D1 ('MetaData "MemberKey" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "MKType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type1 i))) :+: (C1 ('MetaCons "MKBareword" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :+: C1 ('MetaCons "MKValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value))))

data Value Source #

Constructors

Value ValueVariant Comment 

Instances

Instances details
Generic Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep Value 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep Value = D1 ('MetaData "Value" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "Value" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ValueVariant) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))

Methods

from :: Value -> Rep Value x #

to :: Rep Value x -> Value #

Show Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

CollectComments Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Default Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

def :: Value #

Eq Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

Hashable Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

hashWithSalt :: Int -> Value -> Int #

hash :: Value -> Int #

Pretty Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Methods

pretty :: Value -> Doc ann #

prettyList :: [Value] -> Doc ann #

ToExpr Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: Value -> Expr #

listToExpr :: [Value] -> Expr #

type Rep Value Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep Value = D1 ('MetaData "Value" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "Value" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ValueVariant) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))

data ValueVariant Source #

Instances

Instances details
Generic ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep ValueVariant 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep ValueVariant = D1 ('MetaData "ValueVariant" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (((C1 ('MetaCons "VUInt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)) :+: C1 ('MetaCons "VNInt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))) :+: (C1 ('MetaCons "VBignum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)) :+: C1 ('MetaCons "VFloat16" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)))) :+: ((C1 ('MetaCons "VFloat32" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)) :+: C1 ('MetaCons "VFloat64" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) :+: (C1 ('MetaCons "VText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "VBytes" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)) :+: C1 ('MetaCons "VBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))
Show ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

CollectComments ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Default ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

def :: ValueVariant #

Eq ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Hashable ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Pretty ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Methods

pretty :: ValueVariant -> Doc ann #

prettyList :: [ValueVariant] -> Doc ann #

ToExpr ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep ValueVariant Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep ValueVariant = D1 ('MetaData "ValueVariant" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (((C1 ('MetaCons "VUInt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)) :+: C1 ('MetaCons "VNInt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))) :+: (C1 ('MetaCons "VBignum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)) :+: C1 ('MetaCons "VFloat16" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)))) :+: ((C1 ('MetaCons "VFloat32" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)) :+: C1 ('MetaCons "VFloat64" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) :+: (C1 ('MetaCons "VText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "VBytes" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)) :+: C1 ('MetaCons "VBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))

data GrpChoice i Source #

Constructors

GrpChoice 

Instances

Instances details
(IndexMappable XTerm i j, IndexMappable XXType2 i j) => IndexMappable GrpChoice (i :: Type) (j :: Type) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Generic (GrpChoice i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Associated Types

type Rep (GrpChoice i) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GrpChoice i) = D1 ('MetaData "GrpChoice" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "GrpChoice" 'PrefixI 'True) (S1 ('MetaSel ('Just "gcGroupEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GroupEntry i]) :*: S1 ('MetaSel ('Just "gcComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i))))

Methods

from :: GrpChoice i -> Rep (GrpChoice i) x #

to :: Rep (GrpChoice i) x -> GrpChoice i #

ForAllExtensions i Show => Show (GrpChoice i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i CollectComments => CollectComments (GrpChoice i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

HasComment (XTerm i) => HasComment (GrpChoice i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

ForAllExtensions i Eq => Eq (GrpChoice i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

(==) :: GrpChoice i -> GrpChoice i -> Bool #

(/=) :: GrpChoice i -> GrpChoice i -> Bool #

ForAllExtensions i ToExpr => ToExpr (GrpChoice i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

toExpr :: GrpChoice i -> Expr #

listToExpr :: [GrpChoice i] -> Expr #

type Rep (GrpChoice i) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

type Rep (GrpChoice i) = D1 ('MetaData "GrpChoice" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "GrpChoice" 'PrefixI 'True) (S1 ('MetaSel ('Just "gcGroupEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GroupEntry i]) :*: S1 ('MetaSel ('Just "gcComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (XTerm i))))

class HasName a where Source #

Methods

getName :: a -> Name Source #

Instances

Instances details
HasName Name Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL

Methods

getName :: Name -> Name Source #

HasName GRuleDef Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

HasName GroupDef Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

HasName HuddleItem Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

HasName Rule Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Methods

getName :: Rule -> Name Source #

type ForAllExtensions i (c :: Type -> Constraint) = (c (XCddl i), c (XTerm i), c (XRule i), c (XXTopLevel i), c (XXType2 i)) Source #

data family XCddl i Source #

Instances

Instances details
IndexMappable XCddl HuddleStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XCddl HuddleStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XCddl ParserStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XCddl ParserStage HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XCddl ParserStage ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XCddl ParserStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Monoid (XCddl HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Monoid (XCddl ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Semigroup (XCddl HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Semigroup (XCddl ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Generic (XCddl CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Associated Types

type Rep (XCddl CTreePhase) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XCddl CTreePhase) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "CTreeXCddl" 'PrefixI 'False) (U1 :: Type -> Type))
Generic (XCddl HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Associated Types

type Rep (XCddl HuddleStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XCddl HuddleStage) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXCddl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Comment])))
Generic (XCddl ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Associated Types

type Rep (XCddl ParserStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XCddl ParserStage) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXCddl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Comment])))
Generic (XCddl PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Associated Types

type Rep (XCddl PrettyStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XCddl PrettyStage) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXCddl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Comment])))
Show (XCddl CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Show (XCddl HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Show (XCddl ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Show (XCddl PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

CollectComments (XCddl PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Eq (XCddl CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Eq (XCddl HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Eq (XCddl ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Eq (XCddl PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Ord (XCddl CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

ToExpr (XCddl ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

ToExpr (XCddl PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

data XCddl CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

newtype XCddl HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

newtype XCddl ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

newtype XCddl PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XCddl CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XCddl CTreePhase) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "CTreeXCddl" 'PrefixI 'False) (U1 :: Type -> Type))
type Rep (XCddl HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XCddl HuddleStage) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXCddl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Comment])))
type Rep (XCddl ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XCddl ParserStage) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXCddl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Comment])))
type Rep (XCddl PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XCddl PrettyStage) = D1 ('MetaData "XCddl" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXCddl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Comment])))

data family XTerm i Source #

Instances

Instances details
IndexMappable XTerm HuddleStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XTerm HuddleStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XTerm ParserStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XTerm ParserStage HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XTerm ParserStage ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XTerm ParserStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IsString (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Monoid (XTerm HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Monoid (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Monoid (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Semigroup (XTerm HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Semigroup (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Semigroup (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Generic (XTerm CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Associated Types

type Rep (XTerm CTreePhase) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XTerm CTreePhase) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "CTreeXTerm" 'PrefixI 'False) (U1 :: Type -> Type))
Generic (XTerm HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Associated Types

type Rep (XTerm HuddleStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XTerm HuddleStage) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXTerm" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Generic (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Associated Types

type Rep (XTerm ParserStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XTerm ParserStage) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXTerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParserXTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Generic (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Associated Types

type Rep (XTerm PrettyStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XTerm PrettyStage) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXTerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPrettyXTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Show (XTerm ValidatorStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CBOR.Validator

Show (XTerm CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Show (XTerm HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Show (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Show (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

CollectComments (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

HasComment (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

HasComment (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Default (XTerm CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Methods

def :: XTerm CTreePhase #

Eq (XTerm CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Eq (XTerm HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Eq (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Eq (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Ord (XTerm CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Hashable (XTerm CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

ToExpr (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

ToExpr (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

data XTerm ValidatorStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CBOR.Validator

data XTerm CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

newtype XTerm HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

newtype XTerm ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

newtype XTerm PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XTerm CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XTerm CTreePhase) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "CTreeXTerm" 'PrefixI 'False) (U1 :: Type -> Type))
type Rep (XTerm HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XTerm HuddleStage) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXTerm" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
type Rep (XTerm ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XTerm ParserStage) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXTerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParserXTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
type Rep (XTerm PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XTerm PrettyStage) = D1 ('MetaData "XTerm" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXTerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPrettyXTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))

data family XRule i Source #

Instances

Instances details
IndexMappable XRule HuddleStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XRule HuddleStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XRule ParserStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XRule ParserStage ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XRule ParserStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Monoid (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Semigroup (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Generic (XRule CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Associated Types

type Rep (XRule CTreePhase) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XRule CTreePhase) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "CTreeXRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CBORGenerator))))
Generic (XRule HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Associated Types

type Rep (XRule HuddleStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XRule HuddleStage) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "HuddleXRule" 'PrefixI 'True) (S1 ('MetaSel ('Just "hxrComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment) :*: S1 ('MetaSel ('Just "hxrGenerator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CBORGenerator))))
Generic (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Associated Types

type Rep (XRule ParserStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XRule ParserStage) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXRule" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParserXRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Generic (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Associated Types

type Rep (XRule PrettyStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XRule PrettyStage) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXRule" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPrettyXRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Show (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Show (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

CollectComments (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

HasComment (XRule HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

HasComment (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

HasComment (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Default (XRule HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Default (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Eq (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Eq (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

ToExpr (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

ToExpr (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

newtype XRule CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

data XRule HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

newtype XRule ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

newtype XRule PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XRule CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XRule CTreePhase) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "CTreeXRule" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CBORGenerator))))
type Rep (XRule HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XRule HuddleStage) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "HuddleXRule" 'PrefixI 'True) (S1 ('MetaSel ('Just "hxrComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment) :*: S1 ('MetaSel ('Just "hxrGenerator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CBORGenerator))))
type Rep (XRule ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XRule ParserStage) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXRule" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParserXRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
type Rep (XRule PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XRule PrettyStage) = D1 ('MetaData "XRule" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXRule" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPrettyXRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))

data family XXTopLevel i Source #

Instances

Instances details
IndexMappable XXTopLevel HuddleStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXTopLevel ParserStage HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXTopLevel ParserStage ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXTopLevel ParserStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Monoid (XXTopLevel HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Semigroup (XXTopLevel HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Generic (XXTopLevel CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Associated Types

type Rep (XXTopLevel CTreePhase) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XXTopLevel CTreePhase) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "CTreeXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
Generic (XXTopLevel HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Associated Types

type Rep (XXTopLevel HuddleStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XXTopLevel HuddleStage) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Generic (XXTopLevel ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Associated Types

type Rep (XXTopLevel ParserStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XXTopLevel ParserStage) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Generic (XXTopLevel PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Associated Types

type Rep (XXTopLevel PrettyStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XXTopLevel PrettyStage) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
Show (XXTopLevel CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Show (XXTopLevel HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Show (XXTopLevel ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Show (XXTopLevel PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

CollectComments (XXTopLevel PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Eq (XXTopLevel CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Eq (XXTopLevel HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Eq (XXTopLevel ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Eq (XXTopLevel PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Ord (XXTopLevel CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

ToExpr (XXTopLevel ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

ToExpr (XXTopLevel PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

newtype XXTopLevel CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

newtype XXTopLevel HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

newtype XXTopLevel ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

newtype XXTopLevel PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XXTopLevel CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XXTopLevel CTreePhase) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "CTreeXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
type Rep (XXTopLevel HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XXTopLevel HuddleStage) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
type Rep (XXTopLevel ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XXTopLevel ParserStage) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))
type Rep (XXTopLevel PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XXTopLevel PrettyStage) = D1 ('MetaData "XXTopLevel" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXXTopLevel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Comment)))

data family XXType2 i Source #

Instances

Instances details
IndexMappable XXType2 HuddleStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXType2 HuddleStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXType2 ParserStage CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXType2 ParserStage HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXType2 ParserStage ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

IndexMappable XXType2 ParserStage PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.IndexMappable

Semigroup (XXType2 HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Generic (XXType2 CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Associated Types

type Rep (XXType2 CTreePhase) 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XXType2 CTreePhase) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "CTreeXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
Generic (XXType2 HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Associated Types

type Rep (XXType2 HuddleStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XXType2 HuddleStage) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
Generic (XXType2 ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Associated Types

type Rep (XXType2 ParserStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XXType2 ParserStage) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
Generic (XXType2 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Associated Types

type Rep (XXType2 PrettyStage) 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XXType2 PrettyStage) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
Show (XXType2 CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Show (XXType2 HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Show (XXType2 ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Show (XXType2 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

CollectComments (XXType2 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Eq (XXType2 CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Eq (XXType2 HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

Eq (XXType2 ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

Eq (XXType2 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

Ord (XXType2 CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

Hashable (XXType2 CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

ToExpr (XXType2 ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

ToExpr (XXType2 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

newtype XXType2 CTreePhase Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

newtype XXType2 HuddleStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

newtype XXType2 ParserStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

newtype XXType2 PrettyStage Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XXType2 CTreePhase) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.CDDL.CTree

type Rep (XXType2 CTreePhase) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.CDDL.CTree" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "CTreeXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
type Rep (XXType2 HuddleStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Huddle

type Rep (XXType2 HuddleStage) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.Huddle" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "HuddleXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
type Rep (XXType2 ParserStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Parser

type Rep (XXType2 ParserStage) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.Parser" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "ParserXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))
type Rep (XXType2 PrettyStage) Source # 
Instance details

Defined in Codec.CBOR.Cuddle.Pretty

type Rep (XXType2 PrettyStage) = D1 ('MetaData "XXType2" "Codec.CBOR.Cuddle.Pretty" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'True) (C1 ('MetaCons "PrettyXXType2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Void)))