japanese-holidays-1.0.0.0: Japanese holidays utility

Safe HaskellSafe
LanguageHaskell2010

Data.Holiday.Japan

Synopsis

Documentation

data Holiday Source #

Data type for Japanese holidays.

Constructors

D元日

New Year's Day

D成人の日

Coming of Age Day

D建国記念の日

National Foundation Day

D春分の日

Vernal Equinox Day

D昭和の日

Showa Day

D憲法記念日

Constitution Memorial Day

Dみどりの日

Greenery Day

Dこどもの日

Children's Day

D海の日

Marine Day

D山の日

Mountain Day

D敬老の日

Respect for the Aged Day

D秋分の日

Autumnal Equinox Day

D体育の日

Health and Sports Day

Dスポーツの日

Sports Day

D文化の日

Culture Day

D勤労感謝の日

Labour Thanksgiving Day

D天皇誕生日

Emperor's Birthday

D国民の休日

National Holiday

D振替休日

Make Up Holiday

D即位礼正殿の儀

Ceremonial of Enthronement

D昭和天皇の大喪の礼

Rites of Showa Emperor Funeral

D皇太子明仁親王の結婚の儀

Ceremonial of Prince Akihito's Marriage

D皇太子徳仁親王の結婚の儀

Ceremonial of Prince Naruhito's Marriage

D即位の日

Enthronement Day

Instances
Eq Holiday Source # 
Instance details

Defined in Data.Holiday.Japan

Methods

(==) :: Holiday -> Holiday -> Bool #

(/=) :: Holiday -> Holiday -> Bool #

Show Holiday Source # 
Instance details

Defined in Data.Holiday.Japan

display :: Holiday -> String Source #

Remove prefix "D" and show Holiday name.

>>> putStrLn $ display D元日
元日

holiday :: Day -> Maybe Holiday Source #

Identify which holiday the day is if possible.

>>> holiday $ fromGregorian 2015 5 5
Just Dこどもの日
>>> holiday $ fromGregorian 2015 12 8
Nothing

isHoliday :: Day -> Bool Source #

Identify if the day is a holiday or not.