1 {-# LANGUAGE DeriveGeneric #-}
5 import GHC.Generics (Generic)
9 deriving (Eq, Ord, Show, Bounded, Enum)
11 data G5 = Red | Pink | Orange | Yellow | Green
12 deriving (Eq, Ord, Show, Bounded, Enum)
15 deriving (Eq, Ord, Show, Generic)
19 deriving (Eq, Ord, Show, Generic)
29 deriving (Bounded, Enum, Eq, Ord, Show)
31 -- | Note that the grades 1, 2, 4, and 12 are absent.
32 data DanishSchoolGrade
33 = D0 -- ^ the completely unacceptable performance
34 | D3 -- ^ the very hesitant, very insufficient, and unsatisfactory performance
35 | D5 -- ^ the hesitant and not satisfactory performance
36 | D6 -- ^ the just acceptable performance
37 | D7 -- ^ the mediocre performance, slightly below average
38 | D8 -- ^ the average performance
39 | D9 -- ^ the good performance, a little above average
40 | D10 -- ^ the excellent but not particularly independent performance
41 | D11 -- ^ the independent and excellent performance
42 | D13 -- ^ the exceptionally independent and excellent performance
43 deriving (Bounded, Enum, Eq, Ord, Show)