Skip to content

Commit

Permalink
Stub edit
Browse files Browse the repository at this point in the history
  • Loading branch information
pwadsworth committed Sep 20, 2022
1 parent 351f541 commit bed3dac
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions exercises/concept/valentines-day/src/ValentinesDay.hs
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"

0 comments on commit bed3dac

Please sign in to comment.