tfwh-0.3.7.0

Safe HaskellSafe
LanguageHaskell2010

TFwH.Chap02.ExG

Description

第2章 練習問題 G

Synopsis

Documentation

type Year = Int Source #

type Month = Int Source #

type Day = Int Source #

type Date = (Day, Month, Year) Source #

showDate :: Date -> String Source #

日付を表示文字列に変換

>>> showDate (10, 12, 2013)
"10th December, 2013"
>>> showDate (21, 11, 2020)
"21st November, 2020"

suffix :: Day -> String Source #

日付序数詞の接尾辞

months :: [[Char]] Source #

月の名