LINUX.ORG.RU

История изменений

Исправление merhalak, (текущая версия) :

Haskell?

http://learnyouahaskell.com/making-our-own-types-and-typeclasses

data Day = Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday   
           deriving (Eq, Ord, Show, Read, Bounded, Enum)  

Исправление merhalak, :

Haskell?

data Weekday = Sunday | Monday | ну и т.д.
    deriving (Eq, Show, Read)

http://learnyouahaskell.com/making-our-own-types-and-typeclasses

Исходная версия Deleted, :

Haskell?

data Weekday = Sunday | Monday | ну и т.д.
    deriving (Eq, Show, Read)