-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
351f541
commit bed3dac
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
module ValentinesDay (rateActivity, Approval (..), Cuisine (..), Genre (..), Activity (..)) where | ||
|
||
-- Define the remaining data types to implement rateActivity. | ||
-- You are provided the resulting type to get you started. | ||
-- The other types (Cuisine, Genre, and Activity) do not need | ||
-- to `derive` from type classes. | ||
-- You are provided the resulting type (`Approval`) to get you started. | ||
-- You have to implement the other types (Cuisine, Genre, and Activity), | ||
-- but they do not need to `derive` from type classes. | ||
|
||
data Approval | ||
= Yes | ||
| No | ||
| Maybe | ||
deriving (Show, Eq) | ||
|
||
-- data Approval = | ||
-- data Cuisine = | ||
-- data Genre = | ||
-- data Activity = | ||
data Cuisine = ImplementMe1 | ||
|
||
data Genre = ImplementMe2 | ||
|
||
data Activity = ImplementMe3 | ||
|
||
rateActivity :: Activity -> Approval | ||
rateActivity activity = error "Implement this function" |