japanese-holidays-0.1.1.0: Japanese holidays utility

Safe HaskellSafe
LanguageHaskell2010

Data.Holiday.Japan

Synopsis

Documentation

toJapanese :: Holiday -> String Source #

Return Japanese name of Holidays.

holiday :: Day -> Maybe Holiday Source #

Identify which holiday the day is if possible.

>>> putStrLn $ toJapanese $ Data.Maybe.fromJust $ holiday $ fromGregorian 2015 5 5
こどもの日
>>> holiday $ fromGregorian 2015 12 8
Nothing

isHoliday :: Day -> Bool Source #

Identify if the day is a holiday or not.