diff options
Diffstat (limited to 'src/Base.elm')
-rw-r--r-- | src/Base.elm | 28 |
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 @@ | |||
1 | module Base exposing (..) | ||
2 | |||
3 | import Array exposing (Array) | ||
4 | import Time exposing (Posix) | ||
5 | |||
6 | |||
7 | type WordStatus | ||
8 | = Correct | ||
9 | | Wrong | ||
10 | | Todo | ||
11 | | CurrentWord | ||
12 | |||
13 | |||
14 | type alias Word = | ||
15 | { content : String | ||
16 | , status : WordStatus | ||
17 | } | ||
18 | |||
19 | |||
20 | type 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 | } | ||