buildbox-1.5.2.1: Rehackable components for writing buildbots and test harnesses.

BuildBox.Aspect.Comparison

Contents

Synopsis

Comparisons

data Comparison a Source

The comparison of two values.

Constructors

Comparison

Comparison of a recent value with a baseline.

ComparisonNew

A new value that doesn't have a baseline.

Fields

comparisonNew :: a
 

Instances

Read a => Read (Comparison a) 
Show a => Show (Comparison a) 
Pretty a => Pretty (Comparison a) 

makeComparison :: Real a => a -> a -> Comparison aSource

Make a comparison from two values.

appSwing :: a -> (Double -> a) -> Comparison b -> aSource

Apply a function to the swing of a comparison.

Comparisons of Statistics

data StatsComparison a Source

Comparisons of statistics

Constructors

StatsComparison (Stats (Comparison a)) 

makeStatsComparison :: Real a => Stats a -> Stats a -> StatsComparison aSource

Make a comparison of two Stats.

predSwingStatsComparison :: (Double -> Bool) -> StatsComparison a -> BoolSource

Return True if any of the swings in the StatsComparison match the given function.