This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SetPrime where | |
-- import qualified Data. as List | |
-- no need to import List, as the function all is in the Prelude | |
import Control.Applicative ((<$>), (<*>)) | |
-- prefer explicit imports most of the time | |
data Shape = Oval | Squiggle | Diamond deriving (Show, Eq, Bounded, Enum, Ord) | |
data Color = Red | Purple | Green deriving (Show, Eq, Bounded, Enum, Ord) |