-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
d4e78f1
commit eeebf66
Showing
2 changed files
with
24 additions
and
17 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,39 +1,45 @@ | ||
module ValentinesDay exposing (..) | ||
|
||
type Approval = | ||
Yes | ||
|
||
type Approval | ||
= Yes | ||
| No | ||
| Maybe | ||
|
||
type Cuisine = | ||
Korean | ||
|
||
type Cuisine | ||
= Korean | ||
| Turkish | ||
|
||
type Genre = | ||
Crime | ||
|
||
type Genre | ||
= Crime | ||
| Horror | ||
| Romance | ||
| Thriller | ||
|
||
type Activity = | ||
BoardGame | ||
|
||
type Activity | ||
= BoardGame | ||
| Chill | ||
| Movie Genre | ||
| Restaurant Cuisine | ||
|
||
|
||
rateActivity : Activity -> Approval | ||
rateActivity activity = | ||
case activity of | ||
Restaurant Korean -> | ||
Restaurant Korean -> | ||
Yes | ||
Restaurant Turkish -> | ||
|
||
Restaurant Turkish -> | ||
Maybe | ||
Movie Romance -> | ||
|
||
Movie Romance -> | ||
Yes | ||
|
||
Movie _ -> | ||
|
||
Movie _ -> | ||
No | ||
|
||
_ -> | ||
No | ||
|
||
_ -> No |
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,4 +1,5 @@ | ||
module ValentinesDay exposing (..) | ||
|
||
|
||
rateActivity activity = | ||
Debug.todo "implement this function and create a type annotation" |