Metadata for a datatype.
A value of type DatatypeInfo c contains the information about a datatype
that is not contained in . This information consists
primarily of the names of the datatype, its constructors, and possibly its
record selectors.Code c
The constructor indicates whether the datatype has been declared using newtype
or not.
Constructors
ADT :: ModuleName -> DatatypeName -> NP ConstructorInfo a -> POP StrictnessInfo a -> DatatypeInfo aNewtype :: ModuleName -> DatatypeName -> ConstructorInfo '[x] -> DatatypeInfo '['[x]]
Instances3Eq, Ord, Show
(All (Compose Eq ConstructorInfo) xs, All (Compose Eq (NP StrictnessInfo)) xs) => Eq (DatatypeInfo xs)Defined in generics-sop-0.5.1.4 · Generics.SOP.Metadata(All (Compose Eq ConstructorInfo) xs, All (Compose Ord ConstructorInfo) xs, All (Compose Eq (NP StrictnessInfo)) xs, All (Compose Ord (NP StrictnessInfo)) xs) => Ord (DatatypeInfo xs)Defined in generics-sop-0.5.1.4 · Generics.SOP.Metadata(All (Compose Show ConstructorInfo) xs, All (Compose Show (NP StrictnessInfo)) xs) => Show (DatatypeInfo xs)Defined in generics-sop-0.5.1.4 · Generics.SOP.Metadata