Files
RosettaHaskellCompiler/resources/Enums/haskellEnum1.hs
2022-01-12 14:41:28 +02:00

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"