registry-0.1.2.6: data structure for assembling components

Safe HaskellNone
LanguageHaskell2010

Data.Registry.Internal.Statistics

Contents

Synopsis

DATA TYPES

data Statistics #

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

Constructors

Statistics 

type Operations = [AppliedFunction] #

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

type Paths = [[Value]] #

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

data AppliedFunction #

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

Constructors

AppliedFunction 

usedSpecializations :: Statistics -> [Specialization] #

Return the specializations used during the creation of values

allValuesPaths :: Statistics -> Paths #

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 #

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