blob: c5bef4200f31d086f14570c5342976363fb33e17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Job.Frequency
( Frequency(..)
, microSeconds
) where
data Frequency =
EveryHour
| EveryDay
deriving (Eq, Read, Show)
microSeconds :: Frequency -> Int
microSeconds EveryHour = 1000000 * 60 * 60
microSeconds EveryDay = (microSeconds EveryHour) * 24
|