Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 405 Bytes
--Data -- this module is dubious, may deprecate
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.