th-typegraph-0.17.1: Graph of the subtype relation

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.TypeGraph.Info

Synopsis

Documentation

data TypeGraphInfo hint Source

Information collected about the graph implied by the structure of one or more Type values.

Instances

Eq hint => Eq (TypeGraphInfo hint) 
Ord hint => Ord (TypeGraphInfo hint) 
Show hint => Show (TypeGraphInfo hint) 
Ppr hint => Ppr (TypeGraphInfo hint) 
Lift hint => Lift (TypeGraphInfo hint) 

typeGraphInfo :: forall m hint. (DsMonad m, HasVertexHints hint) => [(Maybe Field, Name, hint)] -> [Type] -> m (TypeGraphInfo hint) Source

Build a TypeGraphInfo value by scanning the supplied types and hints.

fields :: forall hint. Lens' (TypeGraphInfo hint) (Map (E Type) (Set (Name, Name, Either Int Name))) Source

hints :: forall hint hint. Lens (TypeGraphInfo hint) (TypeGraphInfo hint) [(Maybe Field, Name, hint)] [(Maybe Field, Name, hint)] Source

infoMap :: forall hint. Lens' (TypeGraphInfo hint) (Map Name Info) Source

synonyms :: forall hint. Lens' (TypeGraphInfo hint) (Map (E Type) (Set Name)) Source

typeSet :: forall hint. Lens' (TypeGraphInfo hint) (Set Type) Source