netrium-0.6.0: Contract normaliser and simulator

Safe HaskellNone
LanguageHaskell98

Observations

Contents

Description

Netrium is Copyright Anthony Waite, Dave Hetwett, Shaun Laurens 2009-2015, and files herein are licensed |under the MIT license, the text of which can be found in license.txt

Synopsis

Documentation

Time series

Timed events

unTEs :: TimedEvents t -> [(Time, t)] Source #

mapAccumTS :: (acc -> x -> (acc, y)) -> acc -> TimedEvents x -> (acc, TimedEvents y) Source #

insertEventBefore :: Time -> a -> TimedEvents a -> TimedEvents a Source #

Insert an event into a TimedEvents series.

This event is placed before the other simultaneous events in the sequence.

insertEventAfter :: Time -> a -> TimedEvents a -> TimedEvents a Source #

Insert an event into a TimedEvents series.

This event is placed after the other simultaneous events in the sequence.

Merging

mergeBy :: (a -> b -> Ordering) -> [a] -> [b] -> [MergeResult a b] Source #

Generic merging utility. For sorted input lists this is a full outer join.

data MergeResult a b Source #

Constructors

OnlyInLeft a 
InBoth a b 
OnlyInRight b 

XML instances

data ChoiceSeries Source #

Instances

XmlContent ChoiceSeries Source # 
HTypeable ChoiceSeries Source # 

Methods

toHType :: ChoiceSeries -> HType

data Choice Source #

Instances

XmlContent Choice Source # 

Methods

parseContents :: XMLParser Choice

toContents :: Choice -> [Content ()]

xToChar :: Choice -> Char

xFromChar :: Char -> Choice

HTypeable Choice Source # 

Methods

toHType :: Choice -> HType

data Timed a Source #

Constructors

Timed Time a 

Instances

XmlContent a => XmlContent (Timed a) Source # 

Methods

parseContents :: XMLParser (Timed a)

toContents :: Timed a -> [Content ()]

xToChar :: Timed a -> Char

xFromChar :: Char -> Timed a

HTypeable (Timed a) Source # 

Methods

toHType :: Timed a -> HType

data SeriesEnd Source #

Constructors

Unbounded 
Bounded Time 

Instances

XmlContent SeriesEnd Source # 

Methods

parseContents :: XMLParser SeriesEnd

toContents :: SeriesEnd -> [Content ()]

xToChar :: SeriesEnd -> Char

xFromChar :: Char -> SeriesEnd

HTypeable SeriesEnd Source # 

Methods

toHType :: SeriesEnd -> HType