Skip to content

Commit

Permalink
Run elm-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddlyburge committed May 18, 2021
1 parent d4e78f1 commit eeebf66
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
40 changes: 23 additions & 17 deletions exercises/concept/valentines-day/.meta/Exemplar.elm
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
1 change: 1 addition & 0 deletions exercises/concept/valentines-day/src/ValentinesDay.elm
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"

0 comments on commit eeebf66

Please sign in to comment.