aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Config.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-07 15:12:02 +0100
committerJoris Guyonvarch2015-03-07 15:12:02 +0100
commit17a58e0c4c67f27d87635bf1b2ca50fb11795ad3 (patch)
tree8de99cdf0b4021ca6db6920537e7d0fa250e90bc /src/Model/Config.elm
parent336816d2e8ab4afff1562123dfde61bf3a68e61c (diff)
Organizing source code with subdirectories
Diffstat (limited to 'src/Model/Config.elm')
-rw-r--r--src/Model/Config.elm14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Model/Config.elm b/src/Model/Config.elm
new file mode 100644
index 0000000..2973dc7
--- /dev/null
+++ b/src/Model/Config.elm
@@ -0,0 +1,14 @@
+module Model.Config
+ ( Config(..)
+ , otherConfig
+ ) where
+
+type Config =
+ White
+ | Black
+
+otherConfig : Config -> Config
+otherConfig config =
+ case config of
+ White -> Black
+ Black -> White