Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
Holiday means a "real" holiday day like you may not go to work on that day. Like Mother's day isn't considered a holiday because it's on Sundays.
getHoliday :: Day -> Maybe Holiday Source #
Returns a Holiday if the given date is
Examples:
>>>
let christmas = Time.fromGregorian 2019 12 25
>>>
getHoliday christmas
Just (Holiday {holiday_day = 2019-12-25, holiday_name = "Christmas"})
>>>
let noHoliday = Time.fromGregorian 2019 12 20
>>>
getHoliday noHoliday
Nothing