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

Safe HaskellSafe
LanguageHaskell98

BuildBox.Data.Range

Synopsis

Documentation

data Range a Source #

A range extracted from many-valued data.

Constructors

Range 

Fields

Instances

Functor Range Source # 

Methods

fmap :: (a -> b) -> Range a -> Range b #

(<$) :: a -> Range b -> Range a #

Read a => Read (Range a) Source # 
Show a => Show (Range a) Source # 

Methods

showsPrec :: Int -> Range a -> ShowS #

show :: Range a -> String #

showList :: [Range a] -> ShowS #

Pretty a => Pretty (Range a) Source # 

Methods

ppr :: Range a -> Text Source #

makeRange :: (Real a, Dividable a) => [a] -> Range a Source #

Make statistics from a list of values.

flattenRange :: Range a -> [a] Source #

Flatten a Range into a list of its min, avg and max values.