registry-0.1.2.6: data structure for assembling components

Safe HaskellNone
LanguageHaskell2010

Data.Registry.Internal.Statistics

Contents

Synopsis

DATA TYPES

data Statistics Source #

This datatype records: - the created values - the applied functions - the specializations used to create values

Constructors

Statistics 

type Operations = [AppliedFunction] Source #

A list of function applications created when creating a value out of the Registry

type Paths = [[Value]] Source #

List of distinct paths from the root of the value graph to a leaf

data AppliedFunction Source #

A function application with an output value and a list of input values

Constructors

AppliedFunction 

usedSpecializations :: Statistics -> [Specialization] Source #

Return the specializations used during the creation of values

allValuesPaths :: Statistics -> Paths Source #

Return the list of distinct paths from the root of a value graph to leaves of that graph. This can be used to check if a given value was indeed used according to a given specialization

valuePaths :: Value -> Paths Source #

Return all the paths from a given value to all its dependencies