aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Edition/Edition.elm
diff options
context:
space:
mode:
authorJoris2016-09-04 21:21:11 +0200
committerJoris2016-09-04 21:21:31 +0200
commit973a039b54327df74396605410ea9abe19c8a4e7 (patch)
treec702564d17e0a490d56845027238eb4f231be785 /src/Model/Edition/Edition.elm
parent62fee9133f36f655c1ed83e0c2e85394f9948bf5 (diff)
Upgrade to elm 0.17.1
Diffstat (limited to 'src/Model/Edition/Edition.elm')
-rw-r--r--src/Model/Edition/Edition.elm44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/Model/Edition/Edition.elm b/src/Model/Edition/Edition.elm
deleted file mode 100644
index 9a28253..0000000
--- a/src/Model/Edition/Edition.elm
+++ /dev/null
@@ -1,44 +0,0 @@
-module Model.Edition.Edition
- ( Edition
- , Kind(..)
- , newEdition
- , keyCodeToChar
- , isEmpty
- ) where
-
-import Keyboard exposing (KeyCode)
-import String
-
-import Model.Id exposing (..)
-import Model.Edition.NameEdition as NameEdition
-import Model.Edition.TimeEdition as TimeEdition
-
-type alias Edition =
- { id : Id
- , kind : Kind
- , chars : List Char
- }
-
-type Kind =
- Name
- | Time
-
-newEdition id kind =
- { id = id
- , kind = kind
- , chars = []
- }
-
-keyCodeToChar : Kind -> KeyCode -> Maybe Char
-keyCodeToChar kind =
- case kind of
- Name -> NameEdition.keyCodeToChar
- Time -> TimeEdition.keyCodeToChar
-
-isEmpty : Edition -> Bool
-isEmpty edition =
- edition.chars
- |> String.fromList
- |> String.trim
- |> String.length
- |> (==) 0