Hoed-0.5.1: Lightweight algorithmic debugging.

Safe HaskellNone
LanguageHaskell2010

Debug.Hoed.CompTree

Contents

Synopsis

Documentation

type CompTree = Graph Vertex () #

The forest of computation trees. Also see the Libgraph library.

data Vertex #

Instances
Eq Vertex # 
Instance details

Defined in Debug.Hoed.CompTree

Methods

(==) :: Vertex -> Vertex -> Bool #

(/=) :: Vertex -> Vertex -> Bool #

Ord Vertex # 
Instance details

Defined in Debug.Hoed.CompTree

Show Vertex # 
Instance details

Defined in Debug.Hoed.CompTree

Generic Vertex # 
Instance details

Defined in Debug.Hoed.CompTree

Associated Types

type Rep Vertex :: * -> * #

Methods

from :: Vertex -> Rep Vertex x #

to :: Rep Vertex x -> Vertex #

Serialize Vertex # 
Instance details

Defined in Debug.Hoed.Serialize

NFData Vertex # 
Instance details

Defined in Debug.Hoed.CompTree

Methods

rnf :: Vertex -> () #

Hashable Vertex # 
Instance details

Defined in Debug.Hoed.CompTree

Methods

hashWithSalt :: Int -> Vertex -> Int #

hash :: Vertex -> Int #

type Rep Vertex # 
Instance details

Defined in Debug.Hoed.CompTree

type Rep Vertex = D1 (MetaData "Vertex" "Debug.Hoed.CompTree" "Hoed-0.5.1-Ds6BWeW7Ove9R4dNQkZmNi" False) (C1 (MetaCons "RootVertex" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Vertex" PrefixI True) (S1 (MetaSel (Just "vertexStmt") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CompStmt) :*: S1 (MetaSel (Just "vertexJmt") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Judgement)))

mkCompTree :: [CompStmt] -> Dependencies -> CompTree #

data ConstantValue #

Constructors

ConstantValue 

Fields

CVRoot 

unjudgedCharacterCount :: CompTree -> Int #

Approximates the complexity of a computation tree by summing the length of the unjudged computation statements (i.e not Right or Wrong) in the tree.

data TraceInfo #

Constructors

TraceInfo 

Fields

Instances
Show TraceInfo # 
Instance details

Defined in Debug.Hoed.CompTree

data Graph vertex arc #

Constructors

Graph 

Fields

Instances
Generic (Graph vertex arc) 
Instance details

Defined in Data.Graph.Libgraph.Core

Associated Types

type Rep (Graph vertex arc) :: * -> * #

Methods

from :: Graph vertex arc -> Rep (Graph vertex arc) x #

to :: Rep (Graph vertex arc) x -> Graph vertex arc #

(Serialize a, Serialize b) => Serialize (Graph a b) # 
Instance details

Defined in Debug.Hoed.Serialize

Methods

put :: Putter (Graph a b) #

get :: Get (Graph a b) #

type Rep (Graph vertex arc) 
Instance details

Defined in Data.Graph.Libgraph.Core

type Rep (Graph vertex arc) = D1 (MetaData "Graph" "Data.Graph.Libgraph.Core" "libgraph-1.14-IjYxzy2QWeQJJ5hFS641UW" False) (C1 (MetaCons "Graph" PrefixI True) (S1 (MetaSel (Just "root") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 vertex) :*: (S1 (MetaSel (Just "vertices") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [vertex]) :*: S1 (MetaSel (Just "arcs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Arc vertex arc]))))

Orphan instances

NFData AssistedMessage # 
Instance details

Methods

rnf :: AssistedMessage -> () #

NFData Judgement # 
Instance details

Methods

rnf :: Judgement -> () #

(NFData a, NFData b) => NFData (Arc a b) # 
Instance details

Methods

rnf :: Arc a b -> () #