music-score-1.9.0: Musical score and part representation.

Safe HaskellNone
LanguageHaskell2010

Music.Time.Past

Synopsis

Documentation

newtype Past a Source

Past represents a value occuring before and at some point in time.

It may be seen as a note whose era is a left-open, right-inclusive time interval.

Constructors

Past 

Fields

getPast :: (Min (Maybe Time), a)
 

Instances

Functor Past 
Eq a => Eq (Past a) 
Ord a => Ord (Past a) 

newtype Future a Source

Future represents a value occuring at and after some point in time.

It may be seen as a note whose era is a left-open, right-inclusive time interval.

Constructors

Future 

Fields

getFuture :: (Max (Maybe Time), a)
 

Instances

Functor Future 
Eq a => Eq (Future a) 
Ord a => Ord (Future a) 

past :: Past a -> Time -> Maybe a Source

Query a past value. Semantic function.

future :: Future a -> Time -> Maybe a Source

Query a future value. Semantic function.

indexPast :: [Past a] -> Time -> Maybe a Source