Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 357 Bytes
module Roguestar.Lib.TimeCoordinate
(TimeCoordinate,
advanceTime,
zero_time)
where
data TimeCoordinate = TimeCoordinate Rational
deriving (Eq,Ord,Read,Show)
advanceTime :: Rational -> TimeCoordinate -> TimeCoordinate
advanceTime x (TimeCoordinate t) = TimeCoordinate (t + x)
zero_time :: TimeCoordinate
zero_time = TimeCoordinate 0
Jump to Line
Something went wrong with that request. Please try again.