aboutsummaryrefslogtreecommitdiff
path: root/src/Food.purs
diff options
context:
space:
mode:
authorJoris2017-04-05 21:26:31 +0200
committerJoris2017-04-05 21:26:35 +0200
commit28d595fef6d96557c3d318bc63e716dcebba282d (patch)
tree6ece538d3c6094f72cc7f63f1cef3288adb5ad35 /src/Food.purs
parent82f5793b57e923be50e53b6845802fdd30ef947b (diff)
Add glycemic index indicator
Diffstat (limited to 'src/Food.purs')
-rw-r--r--src/Food.purs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Food.purs b/src/Food.purs
index b1e3d29..19b667c 100644
--- a/src/Food.purs
+++ b/src/Food.purs
@@ -18,8 +18,12 @@ glycemicLoad aliment = toNumber aliment.glycemicIndex * toNumber aliment.carbohy
all :: Array Aliment
all =
- [ { name: "oignon", glycemicIndex: 15, carbohydrates: 9 }
- , { name: "olive", glycemicIndex: 15, carbohydrates: 6 }
- , { name: "haricot rouge", glycemicIndex: 35, carbohydrates: 24 }
- , { name: "haricot blanc", glycemicIndex: 35, carbohydrates: 13 }
+ [ { name: "oignons", glycemicIndex: 15, carbohydrates: 9 }
+ , { name: "olives", glycemicIndex: 15, carbohydrates: 6 }
+ , { name: "haricots rouges", glycemicIndex: 35, carbohydrates: 24 }
+ , { name: "haricots blancs", glycemicIndex: 35, carbohydrates: 13 }
+ , { name: "pommes de terres (cuites avec leur peau)", glycemicIndex: 70, carbohydrates: 37 }
+ , { name: "lentilles vertes", glycemicIndex: 30, carbohydrates: 30 }
+ , { name: "lentilles corail", glycemicIndex: 21, carbohydrates: 48 }
+ , { name: "riz basmatti", glycemicIndex: 58, carbohydrates: 25 }
]