| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Holiday.USA
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 christmasJust (Holiday {holiday_day = 2019-12-25, holiday_name = "Christmas"})
>>>let noHoliday = Time.fromGregorian 2019 12 20>>>getHoliday noHolidayNothing