mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 13:00:08 +00:00
14 lines
238 B
Haskell
14 lines
238 B
Haskell
{-The enumerated values to specified the period, e.g. day, week.-}
|
|
data PeriodEnum =
|
|
{-Day-}
|
|
D
|
|
{-Month-}
|
|
| M
|
|
{-Year-}
|
|
| Y
|
|
|
|
instance Show PeriodEnum where
|
|
show D = "day"
|
|
show M = "month"
|
|
show Y = "year"
|