
10 Feb
2005
10 Feb
'05
5:14 a.m.
In article
<3429668D0E777A499EE74A7952C382D103238B8A@EUR-MSG-01.europe.corp.microso
ft.com>,
"Simon Marlow"
module System.Time.Clock ( ... ) where
-- | standard Julian count of Earth days type JulianDay = Integer
newtype DiffTime = MkDiffTime Integer
Rather than exposing the constructor, I'd make it an abstract type with an instance of Integral. You probably want the Integral instance anyway, so that you can use overloaded literals, and then there's not much use for the constructor.
Do you mean for DiffTime or for JulianDay? "System.Time.TAI" is probably better. -- Ashley Yakeley, Seattle WA