Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- calendarDate :: DayOfMonth -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian)
- fromNthDay :: DayNth -> DayOfWeek Gregorian -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian)
- fromWeekDate :: WeekNumber -> DayOfWeek Gregorian -> Year -> Maybe (CalendarDate Gregorian)
- data Gregorian
Constructors
calendarDate :: DayOfMonth -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #
Smart constuctor for Gregorian calendar date.
fromNthDay :: DayNth -> DayOfWeek Gregorian -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #
Smart constuctor for Gregorian calendar date based on relative month day.
fromWeekDate :: WeekNumber -> DayOfWeek Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #
Smart constuctor for Gregorian calendar date based on week date. Note that this method assumes weeks start on Sunday and the first week of the year is the one which has at least one day in the new year. For ISO compliant behavior use this constructor from the ISO module
Types
IsCalendar Gregorian Source # | |
Bounded (DayOfWeek Gregorian) Source # | |
Bounded (Month Gregorian) Source # | |
Enum (DayOfWeek Gregorian) Source # | |
Enum (Month Gregorian) Source # | |
Eq (DayOfWeek Gregorian) Source # | |
Eq (Month Gregorian) Source # | |
Ord (DayOfWeek Gregorian) Source # | |
Ord (Month Gregorian) Source # | |
Show (DayOfWeek Gregorian) Source # | |
Show (Month Gregorian) Source # | |
type Date Gregorian Source # | |
data DayOfWeek Gregorian Source # | |
data Month Gregorian Source # | |