aboutsummaryrefslogtreecommitdiff
path: root/src/Aliment.purs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Aliment.purs')
-rw-r--r--src/Aliment.purs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Aliment.purs b/src/Aliment.purs
new file mode 100644
index 0000000..e7c4fc8
--- /dev/null
+++ b/src/Aliment.purs
@@ -0,0 +1,13 @@
+module Aliment where
+
+all :: Array Aliment
+all =
+ [ { name: "Oignon", gi: 15 }
+ , { name: "Olive", gi: 15 }
+ , { name: "Haricot rouge", gi: 35 }
+ ]
+
+type Aliment =
+ { name :: String
+ , gi :: Int
+ }