mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-19 05:20:07 +00:00
added enum pretty printing tests
This commit is contained in:
13
resources/Enums/haskellEnum2.hs
Normal file
13
resources/Enums/haskellEnum2.hs
Normal file
@@ -0,0 +1,13 @@
|
||||
{-The enumerated values to specified the period, e.g. day, week.-}
|
||||
data EnumWithoutDisplay =
|
||||
{-Day-}
|
||||
D
|
||||
{-Month-}
|
||||
| M
|
||||
{-Year-}
|
||||
| Y
|
||||
|
||||
instance Show EnumWithoutDisplay where
|
||||
show D = "D"
|
||||
show M = "M"
|
||||
show Y = "Y"
|
||||
Reference in New Issue
Block a user