merge from propellor
This commit is contained in:
parent
e2736a3f5e
commit
38862bf65d
1 changed files with 11 additions and 3 deletions
|
@ -10,7 +10,11 @@ module Utility.Scheduled (
|
||||||
Recurrance(..),
|
Recurrance(..),
|
||||||
ScheduledTime(..),
|
ScheduledTime(..),
|
||||||
NextTime(..),
|
NextTime(..),
|
||||||
|
WeekDay,
|
||||||
|
MonthDay,
|
||||||
|
YearDay,
|
||||||
nextTime,
|
nextTime,
|
||||||
|
startTime,
|
||||||
fromSchedule,
|
fromSchedule,
|
||||||
fromScheduledTime,
|
fromScheduledTime,
|
||||||
toScheduledTime,
|
toScheduledTime,
|
||||||
|
@ -21,9 +25,13 @@ module Utility.Scheduled (
|
||||||
prop_schedule_roundtrips
|
prop_schedule_roundtrips
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Common
|
import Utility.Data
|
||||||
import Utility.QuickCheck
|
import Utility.QuickCheck
|
||||||
|
import Utility.PartialPrelude
|
||||||
|
import Utility.Misc
|
||||||
|
|
||||||
|
import Control.Applicative
|
||||||
|
import Data.List
|
||||||
import Data.Time.Clock
|
import Data.Time.Clock
|
||||||
import Data.Time.LocalTime
|
import Data.Time.LocalTime
|
||||||
import Data.Time.Calendar
|
import Data.Time.Calendar
|
||||||
|
@ -41,9 +49,9 @@ data Recurrance
|
||||||
| Weekly (Maybe WeekDay)
|
| Weekly (Maybe WeekDay)
|
||||||
| Monthly (Maybe MonthDay)
|
| Monthly (Maybe MonthDay)
|
||||||
| Yearly (Maybe YearDay)
|
| Yearly (Maybe YearDay)
|
||||||
-- Days, Weeks, or Months of the year evenly divisible by a number.
|
|
||||||
-- (Divisible Year is years evenly divisible by a number.)
|
|
||||||
| Divisible Int Recurrance
|
| Divisible Int Recurrance
|
||||||
|
-- ^ Days, Weeks, or Months of the year evenly divisible by a number.
|
||||||
|
-- (Divisible Year is years evenly divisible by a number.)
|
||||||
deriving (Eq, Read, Show, Ord)
|
deriving (Eq, Read, Show, Ord)
|
||||||
|
|
||||||
type WeekDay = Int
|
type WeekDay = Int
|
||||||
|
|
Loading…
Reference in a new issue