Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data TypeGraphVertex = TypeGraphVertex {}
- field :: Lens' TypeGraphVertex (Maybe (Name, Name, Either Int Name))
- syns :: Lens' TypeGraphVertex (Set Name)
- etype :: Lens' TypeGraphVertex (E Type)
- typeNames :: TypeGraphVertex -> Set Name
- bestType :: TypeGraphVertex -> Type
- typeVertex :: DsMonad m => Type -> m TypeGraphVertex
- fieldVertex :: DsMonad m => Type -> (Name, Name, Either Int Name) -> m TypeGraphVertex
- oldVertex :: DsMonad m => (Maybe Field, Type) -> m TypeGraphVertex
Documentation
data TypeGraphVertex Source
For simple type graphs always set _field and _synonyms to Nothing.
typeNames :: TypeGraphVertex -> Set Name Source
Return the set of Name
of a type's synonyms, plus the name (if
any) used in its data declaration. Note that this might return the
empty set.
bestType :: TypeGraphVertex -> Type Source
typeVertex :: DsMonad m => Type -> m TypeGraphVertex Source
fieldVertex :: DsMonad m => Type -> (Name, Name, Either Int Name) -> m TypeGraphVertex Source