| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Codec.CBOR.Cuddle.CDDL
Description
This module defined the data structure of CDDL as specified in https://datatracker.ietf.org/doc/rfc8610/
Synopsis
- data CDDL i = CDDL {
- rootDefinition :: Rule i
- topLevelDefinitions :: [TopLevel i]
- cddlExt :: [XXTopLevel i]
- sortCDDL :: CDDL i -> NonEmpty (Rule i)
- cddlTopLevel :: CDDL i -> NonEmpty (TopLevel i)
- fromRule :: Monoid (XCddl i) => Rule i -> CDDL i
- fromRules :: Monoid (XCddl i) => NonEmpty (Rule i) -> CDDL i
- appendRules :: CDDL i -> [Rule i] -> CDDL i
- data TopLevel i
- = TopLevelRule (Rule i)
- | XXTopLevel (XXTopLevel i)
- newtype Name = Name {}
- data Rule i = Rule {
- ruleName :: Name
- ruleGenParam :: Maybe (GenericParameters i)
- ruleAssign :: Assign
- ruleTerm :: TypeOrGroup i
- ruleExt :: XRule i
- data TypeOrGroup i
- = TOGType (Type0 i)
- | TOGGroup (GroupEntry i)
- data Assign
- newtype GenericArg i = GenericArg (NonEmpty (Type1 i))
- newtype GenericParameters i = GenericParameters (NonEmpty (GenericParameter i))
- data GenericParameter i = GenericParameter {}
- newtype Type0 i = Type0 {}
- data Type1 i = Type1 {}
- data Type2 i
- data TyOp
- data RangeBound
- data OccurrenceIndicator
- = OIOptional
- | OIZeroOrMore
- | OIOneOrMore
- | OIBounded (Maybe Word64) (Maybe Word64)
- newtype Group i = Group {}
- data GroupEntry i = GroupEntry {}
- data GroupEntryVariant i
- data MemberKey i
- data Value = Value ValueVariant Comment
- value :: ValueVariant -> Value
- data ValueVariant
- data GrpChoice i = GrpChoice {
- gcGroupEntries :: [GroupEntry i]
- gcComment :: XTerm i
- unwrap :: TypeOrGroup i -> Maybe (Group i)
- compareRuleName :: Ord (XTerm i) => Rule i -> Rule i -> Ordering
- class HasName a where
- type ForAllExtensions i (c :: Type -> Constraint) = (c (XCddl i), c (XTerm i), c (XRule i), c (XXTopLevel i), c (XXType2 i))
- data family XCddl i
- data family XTerm i
- data family XRule i
- data family XXTopLevel i
- data family XXType2 i
Documentation
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
Constructors
| TopLevelRule (Rule i) | |
| XXTopLevel (XXTopLevel i) |
Instances
| (IndexMappable XXTopLevel i j, IndexMappable XXType2 i j, IndexMappable XTerm i j, IndexMappable XRule i j) => IndexMappable TopLevel (i :: Type) (j :: Type) Source # | |||||
| Generic (TopLevel i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (TopLevel i) Source # | |||||
| ForAllExtensions i Eq => Eq (TopLevel i) Source # | |||||
| Pretty (TopLevel PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ForAllExtensions i ToExpr => ToExpr (TopLevel i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (TopLevel i) Source # | |||||
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)))) | |||||
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.
Instances
| IsString Name Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods fromString :: String -> Name # | |||||
| Monoid Name Source # | |||||
| Semigroup Name Source # | |||||
| Generic Name Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| Show Name Source # | |||||
| HasName Name Source # | |||||
| CollectComments Name Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: Name -> [Comment] Source # | |||||
| Eq Name Source # | |||||
| Ord Name Source # | |||||
| Hashable Name Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Pretty Name Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ToExpr Name Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep Name Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
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.)
Constructors
| Rule | |
Fields
| |
Instances
| (IndexMappable XXType2 i j, IndexMappable XTerm i j, IndexMappable XRule i j) => IndexMappable Rule (i :: Type) (j :: Type) Source # | |||||
| Generic (Rule i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (Rule i) Source # | |||||
| HasComment (XRule i) => HasComment (Rule i) Source # | |||||
| ForAllExtensions i Eq => Eq (Rule i) Source # | |||||
| Pretty (Rule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ForAllExtensions i ToExpr => ToExpr (Rule i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (Rule i) Source # | |||||
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
| (IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable TypeOrGroup (i :: Type) (j :: Type) Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: TypeOrGroup i -> TypeOrGroup j Source # | |||||
| Generic (TypeOrGroup i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
Methods from :: TypeOrGroup i -> Rep (TypeOrGroup i) x # to :: Rep (TypeOrGroup i) x -> TypeOrGroup i # | |||||
| ForAllExtensions i Show => Show (TypeOrGroup i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> TypeOrGroup i -> ShowS # show :: TypeOrGroup i -> String # showList :: [TypeOrGroup i] -> ShowS # | |||||
| ForAllExtensions i CollectComments => CollectComments (TypeOrGroup i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: TypeOrGroup i -> [Comment] Source # | |||||
| ForAllExtensions i Eq => Eq (TypeOrGroup i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods (==) :: TypeOrGroup i -> TypeOrGroup i -> Bool # (/=) :: TypeOrGroup i -> TypeOrGroup i -> Bool # | |||||
| ForAllExtensions i ToExpr => ToExpr (TypeOrGroup i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (TypeOrGroup i) Source # | |||||
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)))) | |||||
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.)
newtype GenericArg i Source #
Constructors
| GenericArg (NonEmpty (Type1 i)) |
Instances
| (IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable GenericArg (i :: Type) (j :: Type) Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: GenericArg i -> GenericArg j Source # | |||||
| Semigroup (GenericArg i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods (<>) :: GenericArg i -> GenericArg i -> GenericArg i # sconcat :: NonEmpty (GenericArg i) -> GenericArg i # stimes :: Integral b => b -> GenericArg i -> GenericArg i # | |||||
| Generic (GenericArg i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (GenericArg i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> GenericArg i -> ShowS # show :: GenericArg i -> String # showList :: [GenericArg i] -> ShowS # | |||||
| ForAllExtensions i CollectComments => CollectComments (GenericArg i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: GenericArg i -> [Comment] Source # | |||||
| ForAllExtensions i Eq => Eq (GenericArg i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Pretty (GenericArg PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods pretty :: GenericArg PrettyStage -> Doc ann # prettyList :: [GenericArg PrettyStage] -> Doc ann # | |||||
| ForAllExtensions i ToExpr => ToExpr (GenericArg i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (GenericArg i) Source # | |||||
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.
Constructors
| GenericParameters (NonEmpty (GenericParameter i)) |
Instances
| IndexMappable XTerm i j => IndexMappable GenericParameters (i :: Type) (j :: Type) Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: GenericParameters i -> GenericParameters j Source # | |||||
| Semigroup (GenericParameters i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods (<>) :: GenericParameters i -> GenericParameters i -> GenericParameters i # sconcat :: NonEmpty (GenericParameters i) -> GenericParameters i # stimes :: Integral b => b -> GenericParameters i -> GenericParameters i # | |||||
| Generic (GenericParameters i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
Methods from :: GenericParameters i -> Rep (GenericParameters i) x # to :: Rep (GenericParameters i) x -> GenericParameters i # | |||||
| Show (XTerm i) => Show (GenericParameters i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> GenericParameters i -> ShowS # show :: GenericParameters i -> String # showList :: [GenericParameters i] -> ShowS # | |||||
| Eq (XTerm i) => Eq (GenericParameters i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods (==) :: GenericParameters i -> GenericParameters i -> Bool # (/=) :: GenericParameters i -> GenericParameters i -> Bool # | |||||
| Pretty (GenericParameters PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods pretty :: GenericParameters PrettyStage -> Doc ann # prettyList :: [GenericParameters PrettyStage] -> Doc ann # | |||||
| ToExpr (XTerm i) => ToExpr (GenericParameters i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (GenericParameters i) Source # | |||||
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 | |
Instances
| IndexMappable XTerm i j => IndexMappable GenericParameter (i :: Type) (j :: Type) Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: GenericParameter i -> GenericParameter j Source # | |||||
| Generic (GenericParameter i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
Methods from :: GenericParameter i -> Rep (GenericParameter i) x # to :: Rep (GenericParameter i) x -> GenericParameter i # | |||||
| Show (XTerm i) => Show (GenericParameter i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> GenericParameter i -> ShowS # show :: GenericParameter i -> String # showList :: [GenericParameter i] -> ShowS # | |||||
| CollectComments (XTerm i) => CollectComments (GenericParameter i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: GenericParameter i -> [Comment] Source # | |||||
| HasComment (XTerm i) => HasComment (GenericParameter i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Eq (XTerm i) => Eq (GenericParameter i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods (==) :: GenericParameter i -> GenericParameter i -> Bool # (/=) :: GenericParameter i -> GenericParameter i -> Bool # | |||||
| Pretty (GenericParameter PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods pretty :: GenericParameter PrettyStage -> Doc ann # prettyList :: [GenericParameter PrettyStage] -> Doc ann # | |||||
| ToExpr (XTerm i) => ToExpr (GenericParameter i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (GenericParameter i) Source # | |||||
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)))) | |||||
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.
Instances
| (IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable Type0 (i :: Type) (j :: Type) Source # | |||||
| Semigroup (Type0 i) Source # | |||||
| Generic (Type0 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (Type0 i) Source # | |||||
| ForAllExtensions i CollectComments => CollectComments (Type0 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: Type0 i -> [Comment] Source # | |||||
| ForAllExtensions i Eq => Eq (Type0 i) Source # | |||||
| Pretty (Type0 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ForAllExtensions i ToExpr => ToExpr (Type0 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (Type0 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
Two types can be combined with a range operator (see below)
Instances
| (IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable Type1 (i :: Type) (j :: Type) Source # | |||||
| Generic (Type1 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (Type1 i) Source # | |||||
| ForAllExtensions i CollectComments => CollectComments (Type1 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: Type1 i -> [Comment] Source # | |||||
| HasComment (XTerm i) => HasComment (Type1 i) Source # | |||||
| ForAllExtensions i Eq => Eq (Type1 i) Source # | |||||
| Pretty (Type1 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ForAllExtensions i ToExpr => ToExpr (Type1 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (Type1 i) Source # | |||||
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))))) | |||||
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
| (IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable Type2 (i :: Type) (j :: Type) Source # | |||||
| Generic (Type2 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (Type2 i) Source # | |||||
| ForAllExtensions i CollectComments => CollectComments (Type2 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: Type2 i -> [Comment] Source # | |||||
| ForAllExtensions i Eq => Eq (Type2 i) Source # | |||||
| Pretty (Type2 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ForAllExtensions i ToExpr => ToExpr (Type2 i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (Type2 i) Source # | |||||
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))))))) | |||||
Constructors
| RangeOp RangeBound | |
| CtrlOp CtlOp |
Instances
| Generic TyOp Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| Show TyOp Source # | |||||
| Eq TyOp Source # | |||||
| Pretty TyOp Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ToExpr TyOp Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep TyOp Source # | |||||
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 "...".
Instances
| Generic RangeBound Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| Show RangeBound Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> RangeBound -> ShowS # show :: RangeBound -> String # showList :: [RangeBound] -> ShowS # | |||||
| Eq RangeBound Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Hashable RangeBound Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| ToExpr RangeBound Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep RangeBound Source # | |||||
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.
Constructors
| OIOptional | |
| OIZeroOrMore | |
| OIOneOrMore | |
| OIBounded (Maybe Word64) (Maybe Word64) |
Instances
| Generic OccurrenceIndicator Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
Methods from :: OccurrenceIndicator -> Rep OccurrenceIndicator x # to :: Rep OccurrenceIndicator x -> OccurrenceIndicator # | |||||
| Show OccurrenceIndicator Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> OccurrenceIndicator -> ShowS # show :: OccurrenceIndicator -> String # showList :: [OccurrenceIndicator] -> ShowS # | |||||
| Eq OccurrenceIndicator Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods (==) :: OccurrenceIndicator -> OccurrenceIndicator -> Bool # (/=) :: OccurrenceIndicator -> OccurrenceIndicator -> Bool # | |||||
| Hashable OccurrenceIndicator Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Pretty OccurrenceIndicator Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ToExpr OccurrenceIndicator Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep OccurrenceIndicator Source # | |||||
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))))) | |||||
A group matches any sequence of key/value pairs that matches any of the choices given (again using PEG semantics).
Instances
| (IndexMappable XTerm i j, IndexMappable XXType2 i j) => IndexMappable Group (i :: Type) (j :: Type) Source # | |||||
| Semigroup (Group i) Source # | |||||
| Generic (Group i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (Group i) Source # | |||||
| ForAllExtensions i CollectComments => CollectComments (Group i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: Group i -> [Comment] Source # | |||||
| HasComment (XTerm i) => HasComment (Group i) Source # | |||||
| ForAllExtensions i Eq => Eq (Group i) Source # | |||||
| ForAllExtensions i ToExpr => ToExpr (Group i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (Group i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
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.)
Constructors
| GroupEntry | |
Fields | |
Instances
| (IndexMappable XTerm i j, IndexMappable XXType2 i j) => IndexMappable GroupEntry (i :: Type) (j :: Type) Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: GroupEntry i -> GroupEntry j Source # | |||||
| Generic (GroupEntry i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (GroupEntry i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> GroupEntry i -> ShowS # show :: GroupEntry i -> String # showList :: [GroupEntry i] -> ShowS # | |||||
| ForAllExtensions i CollectComments => CollectComments (GroupEntry i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: GroupEntry i -> [Comment] Source # | |||||
| HasComment (XTerm i) => HasComment (GroupEntry i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| ForAllExtensions i Eq => Eq (GroupEntry i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Pretty (GroupEntry PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods pretty :: GroupEntry PrettyStage -> Doc ann # prettyList :: [GroupEntry PrettyStage] -> Doc ann # | |||||
| ForAllExtensions i ToExpr => ToExpr (GroupEntry i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (GroupEntry i) Source # | |||||
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
| (IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable GroupEntryVariant (i :: Type) (j :: Type) Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: GroupEntryVariant i -> GroupEntryVariant j Source # | |||||
| Generic (GroupEntryVariant i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
Methods from :: GroupEntryVariant i -> Rep (GroupEntryVariant i) x # to :: Rep (GroupEntryVariant i) x -> GroupEntryVariant i # | |||||
| ForAllExtensions i Show => Show (GroupEntryVariant i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> GroupEntryVariant i -> ShowS # show :: GroupEntryVariant i -> String # showList :: [GroupEntryVariant i] -> ShowS # | |||||
| ForAllExtensions i CollectComments => CollectComments (GroupEntryVariant i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: GroupEntryVariant i -> [Comment] Source # | |||||
| ForAllExtensions i Eq => Eq (GroupEntryVariant i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods (==) :: GroupEntryVariant i -> GroupEntryVariant i -> Bool # (/=) :: GroupEntryVariant i -> GroupEntryVariant i -> Bool # | |||||
| ForAllExtensions i ToExpr => ToExpr (GroupEntryVariant i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (GroupEntryVariant i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL type Rep (GroupEntryVariant i) = D1 ('MetaData "GroupEntryVariant" "Codec.CBOR.Cuddle.CDDL" "cuddle-1.1.0.0-FBfXbuYjcH55Ev8TDYHISa" 'False) (C1 ('MetaCons "GEType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (MemberKey i))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Type0 i))) :+: (C1 ('MetaCons "GERef" '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 "GEGroup" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Group i))))) | |||||
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).
Instances
| (IndexMappable XXType2 i j, IndexMappable XTerm i j) => IndexMappable MemberKey (i :: Type) (j :: Type) Source # | |||||
| Generic (MemberKey i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (MemberKey i) Source # | |||||
| ForAllExtensions i Eq => Eq (MemberKey i) Source # | |||||
| Pretty (MemberKey PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods pretty :: MemberKey PrettyStage -> Doc ann # prettyList :: [MemberKey PrettyStage] -> Doc ann # | |||||
| ForAllExtensions i ToExpr => ToExpr (MemberKey i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (MemberKey i) Source # | |||||
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)))) | |||||
Constructors
| Value ValueVariant Comment |
Instances
| Generic Value Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| Show Value Source # | |||||
| CollectComments Value Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: Value -> [Comment] Source # | |||||
| Default Value Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Eq Value Source # | |||||
| Hashable Value Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Pretty Value Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ToExpr Value Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep Value Source # | |||||
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))) | |||||
value :: ValueVariant -> Value Source #
data ValueVariant Source #
Constructors
| VUInt Word64 | |
| VNInt Word64 | |
| VBignum Integer | |
| VFloat16 Float | |
| VFloat32 Float | |
| VFloat64 Double | |
| VText Text | |
| VBytes ByteString | |
| VBool Bool |
Instances
| Generic ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| Show ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods showsPrec :: Int -> ValueVariant -> ShowS # show :: ValueVariant -> String # showList :: [ValueVariant] -> ShowS # | |||||
| CollectComments ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: ValueVariant -> [Comment] Source # | |||||
| Default ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods def :: ValueVariant # | |||||
| Eq ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Hashable ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| Pretty ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| ToExpr ValueVariant Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep ValueVariant Source # | |||||
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)))))) | |||||
Constructors
| GrpChoice | |
Fields
| |
Instances
| (IndexMappable XTerm i j, IndexMappable XXType2 i j) => IndexMappable GrpChoice (i :: Type) (j :: Type) Source # | |||||
| Generic (GrpChoice i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Associated Types
| |||||
| ForAllExtensions i Show => Show (GrpChoice i) Source # | |||||
| ForAllExtensions i CollectComments => CollectComments (GrpChoice i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL Methods collectComments :: GrpChoice i -> [Comment] Source # | |||||
| HasComment (XTerm i) => HasComment (GrpChoice i) Source # | |||||
| ForAllExtensions i Eq => Eq (GrpChoice i) Source # | |||||
| ForAllExtensions i ToExpr => ToExpr (GrpChoice i) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL | |||||
| type Rep (GrpChoice i) Source # | |||||
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)))) | |||||
type ForAllExtensions i (c :: Type -> Constraint) = (c (XCddl i), c (XTerm i), c (XRule i), c (XXTopLevel i), c (XXType2 i)) Source #
Instances
| IndexMappable XCddl HuddleStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XCddl HuddleStage -> XCddl CTreePhase Source # | |||||
| IndexMappable XCddl HuddleStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XCddl HuddleStage -> XCddl PrettyStage Source # | |||||
| IndexMappable XCddl ParserStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XCddl ParserStage -> XCddl CTreePhase Source # | |||||
| IndexMappable XCddl ParserStage HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XCddl ParserStage -> XCddl HuddleStage Source # | |||||
| IndexMappable XCddl ParserStage ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XCddl ParserStage -> XCddl ParserStage Source # | |||||
| IndexMappable XCddl ParserStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XCddl ParserStage -> XCddl PrettyStage Source # | |||||
| Monoid (XCddl HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods mempty :: XCddl HuddleStage # mappend :: XCddl HuddleStage -> XCddl HuddleStage -> XCddl HuddleStage # mconcat :: [XCddl HuddleStage] -> XCddl HuddleStage # | |||||
| Monoid (XCddl ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods mempty :: XCddl ParserStage # mappend :: XCddl ParserStage -> XCddl ParserStage -> XCddl ParserStage # mconcat :: [XCddl ParserStage] -> XCddl ParserStage # | |||||
| Semigroup (XCddl HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (<>) :: XCddl HuddleStage -> XCddl HuddleStage -> XCddl HuddleStage # sconcat :: NonEmpty (XCddl HuddleStage) -> XCddl HuddleStage # stimes :: Integral b => b -> XCddl HuddleStage -> XCddl HuddleStage # | |||||
| Semigroup (XCddl ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (<>) :: XCddl ParserStage -> XCddl ParserStage -> XCddl ParserStage # sconcat :: NonEmpty (XCddl ParserStage) -> XCddl ParserStage # stimes :: Integral b => b -> XCddl ParserStage -> XCddl ParserStage # | |||||
| Generic (XCddl CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Associated Types
Methods from :: XCddl CTreePhase -> Rep (XCddl CTreePhase) x # to :: Rep (XCddl CTreePhase) x -> XCddl CTreePhase # | |||||
| Generic (XCddl HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Associated Types
Methods from :: XCddl HuddleStage -> Rep (XCddl HuddleStage) x # to :: Rep (XCddl HuddleStage) x -> XCddl HuddleStage # | |||||
| Generic (XCddl ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Associated Types
Methods from :: XCddl ParserStage -> Rep (XCddl ParserStage) x # to :: Rep (XCddl ParserStage) x -> XCddl ParserStage # | |||||
| Generic (XCddl PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Associated Types
Methods from :: XCddl PrettyStage -> Rep (XCddl PrettyStage) x # to :: Rep (XCddl PrettyStage) x -> XCddl PrettyStage # | |||||
| Show (XCddl CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| Show (XCddl HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| Show (XCddl ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| Show (XCddl PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| CollectComments (XCddl PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods collectComments :: XCddl PrettyStage -> [Comment] Source # | |||||
| Eq (XCddl CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods (==) :: XCddl CTreePhase -> XCddl CTreePhase -> Bool # (/=) :: XCddl CTreePhase -> XCddl CTreePhase -> Bool # | |||||
| Eq (XCddl HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (==) :: XCddl HuddleStage -> XCddl HuddleStage -> Bool # (/=) :: XCddl HuddleStage -> XCddl HuddleStage -> Bool # | |||||
| Eq (XCddl ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (==) :: XCddl ParserStage -> XCddl ParserStage -> Bool # (/=) :: XCddl ParserStage -> XCddl ParserStage -> Bool # | |||||
| Eq (XCddl PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods (==) :: XCddl PrettyStage -> XCddl PrettyStage -> Bool # (/=) :: XCddl PrettyStage -> XCddl PrettyStage -> Bool # | |||||
| Ord (XCddl CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods compare :: XCddl CTreePhase -> XCddl CTreePhase -> Ordering # (<) :: XCddl CTreePhase -> XCddl CTreePhase -> Bool # (<=) :: XCddl CTreePhase -> XCddl CTreePhase -> Bool # (>) :: XCddl CTreePhase -> XCddl CTreePhase -> Bool # (>=) :: XCddl CTreePhase -> XCddl CTreePhase -> Bool # max :: XCddl CTreePhase -> XCddl CTreePhase -> XCddl CTreePhase # min :: XCddl CTreePhase -> XCddl CTreePhase -> XCddl CTreePhase # | |||||
| ToExpr (XCddl ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| ToExpr (XCddl PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| data XCddl CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| newtype XCddl HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| newtype XCddl ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| newtype XCddl PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| type Rep (XCddl CTreePhase) Source # | |||||
| type Rep (XCddl HuddleStage) Source # | |||||
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 # | |||||
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 # | |||||
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]))) | |||||
Instances
| IndexMappable XTerm HuddleStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XTerm HuddleStage -> XTerm CTreePhase Source # | |||||
| IndexMappable XTerm HuddleStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XTerm HuddleStage -> XTerm PrettyStage Source # | |||||
| IndexMappable XTerm ParserStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XTerm ParserStage -> XTerm CTreePhase Source # | |||||
| IndexMappable XTerm ParserStage HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XTerm ParserStage -> XTerm HuddleStage Source # | |||||
| IndexMappable XTerm ParserStage ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XTerm ParserStage -> XTerm ParserStage Source # | |||||
| IndexMappable XTerm ParserStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XTerm ParserStage -> XTerm PrettyStage Source # | |||||
| IsString (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods fromString :: String -> XTerm PrettyStage # | |||||
| Monoid (XTerm HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods mempty :: XTerm HuddleStage # mappend :: XTerm HuddleStage -> XTerm HuddleStage -> XTerm HuddleStage # mconcat :: [XTerm HuddleStage] -> XTerm HuddleStage # | |||||
| Monoid (XTerm ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods mempty :: XTerm ParserStage # mappend :: XTerm ParserStage -> XTerm ParserStage -> XTerm ParserStage # mconcat :: [XTerm ParserStage] -> XTerm ParserStage # | |||||
| Monoid (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods mempty :: XTerm PrettyStage # mappend :: XTerm PrettyStage -> XTerm PrettyStage -> XTerm PrettyStage # mconcat :: [XTerm PrettyStage] -> XTerm PrettyStage # | |||||
| Semigroup (XTerm HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (<>) :: XTerm HuddleStage -> XTerm HuddleStage -> XTerm HuddleStage # sconcat :: NonEmpty (XTerm HuddleStage) -> XTerm HuddleStage # stimes :: Integral b => b -> XTerm HuddleStage -> XTerm HuddleStage # | |||||
| Semigroup (XTerm ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (<>) :: XTerm ParserStage -> XTerm ParserStage -> XTerm ParserStage # sconcat :: NonEmpty (XTerm ParserStage) -> XTerm ParserStage # stimes :: Integral b => b -> XTerm ParserStage -> XTerm ParserStage # | |||||
| Semigroup (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods (<>) :: XTerm PrettyStage -> XTerm PrettyStage -> XTerm PrettyStage # sconcat :: NonEmpty (XTerm PrettyStage) -> XTerm PrettyStage # stimes :: Integral b => b -> XTerm PrettyStage -> XTerm PrettyStage # | |||||
| Generic (XTerm CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Associated Types
Methods from :: XTerm CTreePhase -> Rep (XTerm CTreePhase) x # to :: Rep (XTerm CTreePhase) x -> XTerm CTreePhase # | |||||
| Generic (XTerm HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Associated Types
Methods from :: XTerm HuddleStage -> Rep (XTerm HuddleStage) x # to :: Rep (XTerm HuddleStage) x -> XTerm HuddleStage # | |||||
| Generic (XTerm ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Associated Types
Methods from :: XTerm ParserStage -> Rep (XTerm ParserStage) x # to :: Rep (XTerm ParserStage) x -> XTerm ParserStage # | |||||
| Generic (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Associated Types
Methods from :: XTerm PrettyStage -> Rep (XTerm PrettyStage) x # to :: Rep (XTerm PrettyStage) x -> XTerm PrettyStage # | |||||
| Show (XTerm ValidatorStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.CBOR.Validator | |||||
| Show (XTerm CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| Show (XTerm HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| Show (XTerm ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| Show (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| CollectComments (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods collectComments :: XTerm PrettyStage -> [Comment] Source # | |||||
| HasComment (XTerm ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| HasComment (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| Default (XTerm CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods def :: XTerm CTreePhase # | |||||
| Eq (XTerm CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods (==) :: XTerm CTreePhase -> XTerm CTreePhase -> Bool # (/=) :: XTerm CTreePhase -> XTerm CTreePhase -> Bool # | |||||
| Eq (XTerm HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (==) :: XTerm HuddleStage -> XTerm HuddleStage -> Bool # (/=) :: XTerm HuddleStage -> XTerm HuddleStage -> Bool # | |||||
| Eq (XTerm ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (==) :: XTerm ParserStage -> XTerm ParserStage -> Bool # (/=) :: XTerm ParserStage -> XTerm ParserStage -> Bool # | |||||
| Eq (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods (==) :: XTerm PrettyStage -> XTerm PrettyStage -> Bool # (/=) :: XTerm PrettyStage -> XTerm PrettyStage -> Bool # | |||||
| Ord (XTerm CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods compare :: XTerm CTreePhase -> XTerm CTreePhase -> Ordering # (<) :: XTerm CTreePhase -> XTerm CTreePhase -> Bool # (<=) :: XTerm CTreePhase -> XTerm CTreePhase -> Bool # (>) :: XTerm CTreePhase -> XTerm CTreePhase -> Bool # (>=) :: XTerm CTreePhase -> XTerm CTreePhase -> Bool # max :: XTerm CTreePhase -> XTerm CTreePhase -> XTerm CTreePhase # min :: XTerm CTreePhase -> XTerm CTreePhase -> XTerm CTreePhase # | |||||
| Hashable (XTerm CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| ToExpr (XTerm ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| ToExpr (XTerm PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| data XTerm ValidatorStage Source # | |||||
Defined in Codec.CBOR.Cuddle.CBOR.Validator | |||||
| data XTerm CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| newtype XTerm HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| newtype XTerm ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| newtype XTerm PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| type Rep (XTerm CTreePhase) Source # | |||||
| type Rep (XTerm HuddleStage) Source # | |||||
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 # | |||||
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 # | |||||
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))) | |||||
Instances
| IndexMappable XRule HuddleStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XRule HuddleStage -> XRule CTreePhase Source # | |||||
| IndexMappable XRule HuddleStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XRule HuddleStage -> XRule PrettyStage Source # | |||||
| IndexMappable XRule ParserStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XRule ParserStage -> XRule CTreePhase Source # | |||||
| IndexMappable XRule ParserStage ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XRule ParserStage -> XRule ParserStage Source # | |||||
| IndexMappable XRule ParserStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XRule ParserStage -> XRule PrettyStage Source # | |||||
| Monoid (XRule ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods mempty :: XRule ParserStage # mappend :: XRule ParserStage -> XRule ParserStage -> XRule ParserStage # mconcat :: [XRule ParserStage] -> XRule ParserStage # | |||||
| Semigroup (XRule ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (<>) :: XRule ParserStage -> XRule ParserStage -> XRule ParserStage # sconcat :: NonEmpty (XRule ParserStage) -> XRule ParserStage # stimes :: Integral b => b -> XRule ParserStage -> XRule ParserStage # | |||||
| Generic (XRule CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Associated Types
Methods from :: XRule CTreePhase -> Rep (XRule CTreePhase) x # to :: Rep (XRule CTreePhase) x -> XRule CTreePhase # | |||||
| Generic (XRule HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Associated Types
Methods from :: XRule HuddleStage -> Rep (XRule HuddleStage) x # to :: Rep (XRule HuddleStage) x -> XRule HuddleStage # | |||||
| Generic (XRule ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Associated Types
Methods from :: XRule ParserStage -> Rep (XRule ParserStage) x # to :: Rep (XRule ParserStage) x -> XRule ParserStage # | |||||
| Generic (XRule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Associated Types
Methods from :: XRule PrettyStage -> Rep (XRule PrettyStage) x # to :: Rep (XRule PrettyStage) x -> XRule PrettyStage # | |||||
| Show (XRule ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| Show (XRule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| CollectComments (XRule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods collectComments :: XRule PrettyStage -> [Comment] Source # | |||||
| HasComment (XRule HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| HasComment (XRule ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| HasComment (XRule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| Default (XRule HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods def :: XRule HuddleStage # | |||||
| Default (XRule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods def :: XRule PrettyStage # | |||||
| Eq (XRule ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (==) :: XRule ParserStage -> XRule ParserStage -> Bool # (/=) :: XRule ParserStage -> XRule ParserStage -> Bool # | |||||
| Eq (XRule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods (==) :: XRule PrettyStage -> XRule PrettyStage -> Bool # (/=) :: XRule PrettyStage -> XRule PrettyStage -> Bool # | |||||
| ToExpr (XRule ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| ToExpr (XRule PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| newtype XRule CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| data XRule HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| newtype XRule ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| newtype XRule PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| type Rep (XRule CTreePhase) Source # | |||||
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 # | |||||
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 # | |||||
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 # | |||||
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
| IndexMappable XXTopLevel HuddleStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXTopLevel HuddleStage -> XXTopLevel PrettyStage Source # | |||||
| IndexMappable XXTopLevel ParserStage HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXTopLevel ParserStage -> XXTopLevel HuddleStage Source # | |||||
| IndexMappable XXTopLevel ParserStage ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXTopLevel ParserStage -> XXTopLevel ParserStage Source # | |||||
| IndexMappable XXTopLevel ParserStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXTopLevel ParserStage -> XXTopLevel PrettyStage Source # | |||||
| Monoid (XXTopLevel HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods mempty :: XXTopLevel HuddleStage # mappend :: XXTopLevel HuddleStage -> XXTopLevel HuddleStage -> XXTopLevel HuddleStage # mconcat :: [XXTopLevel HuddleStage] -> XXTopLevel HuddleStage # | |||||
| Semigroup (XXTopLevel HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (<>) :: XXTopLevel HuddleStage -> XXTopLevel HuddleStage -> XXTopLevel HuddleStage # sconcat :: NonEmpty (XXTopLevel HuddleStage) -> XXTopLevel HuddleStage # stimes :: Integral b => b -> XXTopLevel HuddleStage -> XXTopLevel HuddleStage # | |||||
| Generic (XXTopLevel CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Associated Types
Methods from :: XXTopLevel CTreePhase -> Rep (XXTopLevel CTreePhase) x # to :: Rep (XXTopLevel CTreePhase) x -> XXTopLevel CTreePhase # | |||||
| Generic (XXTopLevel HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Associated Types
Methods from :: XXTopLevel HuddleStage -> Rep (XXTopLevel HuddleStage) x # to :: Rep (XXTopLevel HuddleStage) x -> XXTopLevel HuddleStage # | |||||
| Generic (XXTopLevel ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Associated Types
Methods from :: XXTopLevel ParserStage -> Rep (XXTopLevel ParserStage) x # to :: Rep (XXTopLevel ParserStage) x -> XXTopLevel ParserStage # | |||||
| Generic (XXTopLevel PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Associated Types
Methods from :: XXTopLevel PrettyStage -> Rep (XXTopLevel PrettyStage) x # to :: Rep (XXTopLevel PrettyStage) x -> XXTopLevel PrettyStage # | |||||
| Show (XXTopLevel CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods showsPrec :: Int -> XXTopLevel CTreePhase -> ShowS # show :: XXTopLevel CTreePhase -> String # showList :: [XXTopLevel CTreePhase] -> ShowS # | |||||
| Show (XXTopLevel HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods showsPrec :: Int -> XXTopLevel HuddleStage -> ShowS # show :: XXTopLevel HuddleStage -> String # showList :: [XXTopLevel HuddleStage] -> ShowS # | |||||
| Show (XXTopLevel ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods showsPrec :: Int -> XXTopLevel ParserStage -> ShowS # show :: XXTopLevel ParserStage -> String # showList :: [XXTopLevel ParserStage] -> ShowS # | |||||
| Show (XXTopLevel PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods showsPrec :: Int -> XXTopLevel PrettyStage -> ShowS # show :: XXTopLevel PrettyStage -> String # showList :: [XXTopLevel PrettyStage] -> ShowS # | |||||
| CollectComments (XXTopLevel PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods collectComments :: XXTopLevel PrettyStage -> [Comment] Source # | |||||
| Eq (XXTopLevel CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods (==) :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> Bool # (/=) :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> Bool # | |||||
| Eq (XXTopLevel HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (==) :: XXTopLevel HuddleStage -> XXTopLevel HuddleStage -> Bool # (/=) :: XXTopLevel HuddleStage -> XXTopLevel HuddleStage -> Bool # | |||||
| Eq (XXTopLevel ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (==) :: XXTopLevel ParserStage -> XXTopLevel ParserStage -> Bool # (/=) :: XXTopLevel ParserStage -> XXTopLevel ParserStage -> Bool # | |||||
| Eq (XXTopLevel PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods (==) :: XXTopLevel PrettyStage -> XXTopLevel PrettyStage -> Bool # (/=) :: XXTopLevel PrettyStage -> XXTopLevel PrettyStage -> Bool # | |||||
| Ord (XXTopLevel CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods compare :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> Ordering # (<) :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> Bool # (<=) :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> Bool # (>) :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> Bool # (>=) :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> Bool # max :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> XXTopLevel CTreePhase # min :: XXTopLevel CTreePhase -> XXTopLevel CTreePhase -> XXTopLevel CTreePhase # | |||||
| ToExpr (XXTopLevel ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| ToExpr (XXTopLevel PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| newtype XXTopLevel CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| newtype XXTopLevel HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| newtype XXTopLevel ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| newtype XXTopLevel PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| type Rep (XXTopLevel CTreePhase) Source # | |||||
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 # | |||||
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 # | |||||
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 # | |||||
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
| IndexMappable XXType2 HuddleStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXType2 HuddleStage -> XXType2 CTreePhase Source # | |||||
| IndexMappable XXType2 HuddleStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXType2 HuddleStage -> XXType2 PrettyStage Source # | |||||
| IndexMappable XXType2 ParserStage CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXType2 ParserStage -> XXType2 CTreePhase Source # | |||||
| IndexMappable XXType2 ParserStage HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXType2 ParserStage -> XXType2 HuddleStage Source # | |||||
| IndexMappable XXType2 ParserStage ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXType2 ParserStage -> XXType2 ParserStage Source # | |||||
| IndexMappable XXType2 ParserStage PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.IndexMappable Methods mapIndex :: XXType2 ParserStage -> XXType2 PrettyStage Source # | |||||
| Semigroup (XXType2 HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (<>) :: XXType2 HuddleStage -> XXType2 HuddleStage -> XXType2 HuddleStage # sconcat :: NonEmpty (XXType2 HuddleStage) -> XXType2 HuddleStage # stimes :: Integral b => b -> XXType2 HuddleStage -> XXType2 HuddleStage # | |||||
| Generic (XXType2 CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Associated Types
Methods from :: XXType2 CTreePhase -> Rep (XXType2 CTreePhase) x # to :: Rep (XXType2 CTreePhase) x -> XXType2 CTreePhase # | |||||
| Generic (XXType2 HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Associated Types
Methods from :: XXType2 HuddleStage -> Rep (XXType2 HuddleStage) x # to :: Rep (XXType2 HuddleStage) x -> XXType2 HuddleStage # | |||||
| Generic (XXType2 ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Associated Types
Methods from :: XXType2 ParserStage -> Rep (XXType2 ParserStage) x # to :: Rep (XXType2 ParserStage) x -> XXType2 ParserStage # | |||||
| Generic (XXType2 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Associated Types
Methods from :: XXType2 PrettyStage -> Rep (XXType2 PrettyStage) x # to :: Rep (XXType2 PrettyStage) x -> XXType2 PrettyStage # | |||||
| Show (XXType2 CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| Show (XXType2 HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| Show (XXType2 ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| Show (XXType2 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| CollectComments (XXType2 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods collectComments :: XXType2 PrettyStage -> [Comment] Source # | |||||
| Eq (XXType2 CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods (==) :: XXType2 CTreePhase -> XXType2 CTreePhase -> Bool # (/=) :: XXType2 CTreePhase -> XXType2 CTreePhase -> Bool # | |||||
| Eq (XXType2 HuddleStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle Methods (==) :: XXType2 HuddleStage -> XXType2 HuddleStage -> Bool # (/=) :: XXType2 HuddleStage -> XXType2 HuddleStage -> Bool # | |||||
| Eq (XXType2 ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser Methods (==) :: XXType2 ParserStage -> XXType2 ParserStage -> Bool # (/=) :: XXType2 ParserStage -> XXType2 ParserStage -> Bool # | |||||
| Eq (XXType2 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty Methods (==) :: XXType2 PrettyStage -> XXType2 PrettyStage -> Bool # (/=) :: XXType2 PrettyStage -> XXType2 PrettyStage -> Bool # | |||||
| Ord (XXType2 CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree Methods compare :: XXType2 CTreePhase -> XXType2 CTreePhase -> Ordering # (<) :: XXType2 CTreePhase -> XXType2 CTreePhase -> Bool # (<=) :: XXType2 CTreePhase -> XXType2 CTreePhase -> Bool # (>) :: XXType2 CTreePhase -> XXType2 CTreePhase -> Bool # (>=) :: XXType2 CTreePhase -> XXType2 CTreePhase -> Bool # max :: XXType2 CTreePhase -> XXType2 CTreePhase -> XXType2 CTreePhase # min :: XXType2 CTreePhase -> XXType2 CTreePhase -> XXType2 CTreePhase # | |||||
| Hashable (XXType2 CTreePhase) Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| ToExpr (XXType2 ParserStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| ToExpr (XXType2 PrettyStage) Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| newtype XXType2 CTreePhase Source # | |||||
Defined in Codec.CBOR.Cuddle.CDDL.CTree | |||||
| newtype XXType2 HuddleStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Huddle | |||||
| newtype XXType2 ParserStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Parser | |||||
| newtype XXType2 PrettyStage Source # | |||||
Defined in Codec.CBOR.Cuddle.Pretty | |||||
| type Rep (XXType2 CTreePhase) Source # | |||||
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 # | |||||
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 # | |||||
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 # | |||||
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))) | |||||