aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Edition/NameEdition.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-22 12:53:55 +0100
committerJoris Guyonvarch2015-03-22 12:53:55 +0100
commit2abb8ffa46cbe86deedb9ddcbb9b042b51285feb (patch)
tree3756c16ccdf8b61000767637db0807f3d40e12cc /src/Model/Edition/NameEdition.elm
parentce4580451def7e86d0f67d2c353ac65239e17fd1 (diff)
Editing name first draft
Diffstat (limited to 'src/Model/Edition/NameEdition.elm')
-rw-r--r--src/Model/Edition/NameEdition.elm15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Model/Edition/NameEdition.elm b/src/Model/Edition/NameEdition.elm
new file mode 100644
index 0000000..18224ea
--- /dev/null
+++ b/src/Model/Edition/NameEdition.elm
@@ -0,0 +1,15 @@
+module Model.Edition.NameEdition
+ ( keyCodeToChar
+ , renderNameEdition
+ ) where
+
+import Char
+import Keyboard (KeyCode)
+import String
+import List
+
+keyCodeToChar : KeyCode -> Maybe Char
+keyCodeToChar = Just << Char.fromCode
+
+renderNameEdition : List Char -> String
+renderNameEdition = String.fromList << List.reverse