Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines the days of the week.
- This is required to define the day of a booking in the timetable.
- Day/Time modules may already exist in the Haskell-platform's standard library, but since no account of; time-zones, locales, or leap-years, is required, they're undoubtedly over-engineered for the requirement.
Synopsis
- type Weekend = Set Day
- data Day
- tag :: String
- nDaysPerWeek :: NDays
- range :: [Day]
- getYesterday :: Day -> Day
- getTomorrow :: Day -> Day
- getAdjacentDays :: Day -> (Day, Day)
Types
Type-synonyms
type Weekend = Set Day Source #
Contains all days generally considered to be work-days rather than weekend.
Data-types
Defines the days of the working-week.
Constants
nDaysPerWeek :: NDays Source #
The constant number of days in a week.