aboutsummaryrefslogtreecommitdiff
path: root/src/Base.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Base.elm')
-rw-r--r--src/Base.elm28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Base.elm b/src/Base.elm
new file mode 100644
index 0000000..c3557d3
--- /dev/null
+++ b/src/Base.elm
@@ -0,0 +1,28 @@
1module Base exposing (..)
2
3import Array exposing (Array)
4import Time exposing (Posix)
5
6
7type WordStatus
8 = Correct
9 | Wrong
10 | Todo
11 | CurrentWord
12
13
14type alias Word =
15 { content : String
16 , status : WordStatus
17 }
18
19
20type alias Model =
21 { begin : Maybe Posix
22 , end : Maybe Posix
23 , words : Array Word
24 , accuracy : Maybe Float
25 , length : Int
26 , currentWord : Int
27 , inputBox : String
28 }