data-treify-0.3.3: Reify a recursive data structure into an explicit graph.
Data.Reify.TGraph
Synopsis
class ShowF f whereSource
Methods
showF :: f a -> StringSource
Instances
type Id = IntSource
Identifiers
data V ty a Source
Typed variables
Constructors
data Bind ty n Source
Typed binding pair, parameterized by variable and node type constructors.
bindEnv :: forall ty n a. IsTy ty => [Bind ty n] -> V ty a -> n (V ty) aSource
Fast version, using an IntMap. Important: partially apply.
data Graph ty n a Source
Graph, described by bindings and a root variable