calligraphy-0.1.6: HIE-based Haskell call graph and source code visualizer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calligraphy.Phases.Render.Common

Description

Prepare the call graph for rendering

Synopsis

Documentation

type ID = String Source #

A directly printable string uniquely identifying a declaration.

data RenderGraph Source #

A representation of the call graph that's convenient for rendering. Structurally, it's the same as CallGraph, in that it's a tree of nodes and a flat list of edges. The differences is that as much of the non-backend-specific preprocessing has already been taken care of. - Nodes and modules have a unique string ID - Nodes and modules contain their desired label - Render roots are guaranteed to be non-empty - Set of calls and types are empty on --hide-{calls, types} - Modules are flattened depending on --no-cluster-modules

if' :: Bool -> a -> Maybe a Source #