@@ -42,8 +42,8 @@ wine3 = Rose 12 :: Kind
42
42
43
43
-- Question 4
44
44
-- In the world of wines, bottles display all of the above information for the consumer on its label.
45
- -- Create a record type called "Label" that captures the grapes that are in a whine , the region its from,
46
- -- and it's kind. Notice that some wines are a blended combination of multiple grapes!
45
+ -- Create a record type called "Label" that captures the grapes that are in a wine , the region it's from,
46
+ -- and its kind. Notice that some wines are a blended combination of multiple grapes!
47
47
-- Additionally, create for each of the described wine below a label.
48
48
49
49
data Label = Label {
@@ -58,12 +58,12 @@ data Label = Label {
58
58
59
59
larrosaRose = Label {grapes = [grape4], region = region3, kind = Rose 14 }
60
60
61
- -- Castiglioni is a red wine from the region of Tuscany. It is made from the the grape Sangiovese and
61
+ -- Castiglioni is a red wine from the region of Tuscany. It is made from the grape Sangiovese and
62
62
-- has a alcohol level of 12.5%.
63
63
64
64
castiglioni = Label {grapes = [grape1], region = region2, kind = Red 12.5 }
65
65
66
- -- Bordeaux is know for its red wine, these are mainly a blend between Cabernet-sauvignon and Merlot.
66
+ -- Bordeaux is known for its red wine, these are mainly a blend between Cabernet-sauvignon and Merlot.
67
67
-- Create a Label for the wine "Le Petit Haut Lafitte" that has an alcohol percentage 13.5%.
68
68
69
69
lePetitHaitLafitte = Label {grapes = [grape2, grape3], region = region1, kind = Red 13.5 }
@@ -77,4 +77,4 @@ containsGrape labels grape = any (\Label{grapes=xs} -> grape `elem` xs) labels
77
77
78
78
-- This is a test list for the `containsGrape` function with an grape that is not in the list.
79
79
grapeList = [larrosaRose,castiglioni,lePetitHaitLafitte]
80
- newGrape = " Pinot Noir"
80
+ newGrape = " Pinot Noir"
0 commit comments