th-typegraph-0.17: Graph of the subtype relation

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.TypeGraph.Vertex

Synopsis

Documentation

data TypeGraphVertex Source

For simple type graphs always set _field and _synonyms to Nothing.

Constructors

TypeGraphVertex 

Fields

_field :: Maybe (Name, Name, Either Int Name)

The record filed which contains this type

_syns :: Set Name

All the type synonyms that expand to this type

_etype :: E Type

The fully expanded type

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.