Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data structures representing a set of datatypes to be folded.
- newtype FoldFamily = FoldFamily [DataTy]
- data DataTy = DataTy Name [DataCase]
- data DataCase = DataCase Name [DataField]
- data DataField
- newtype Ty = Ty Name
- class HasName d where
- dataCases :: Lens' DataTy [DataCase]
- dataFields :: Lens' DataCase [DataField]
- dataTys :: Iso' FoldFamily [DataTy]
- _Atomic :: Prism' DataField Ty
- _Nonatomic :: Prism' DataField Ty
- _Funct :: Prism' DataField (Name, DataField)
- _Bifunct :: Prism' DataField (Name, DataField, DataField)
- _Trifunct :: Prism' DataField (Name, DataField, DataField, DataField)
Data structures
newtype FoldFamily Source
Represents a set of datatypes to be folded.
Represents a datatype to be folded.
Represents one way to construct a datatype; that is, one of its constructors and its arguments.
Represents a component of a datatype; that is, an argument to one of its constructors.
Represents a datatype's name.
Lenses
Access to the Name
of a Data structure
dataTys :: Iso' FoldFamily [DataTy] Source
Access to the datatypes of a fold family.