-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.elm
47 lines (31 loc) · 873 Bytes
/
Main.elm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module Main exposing (..)
-- Link to manual: http://www.hp.com/ctg/Manual/bpia5309.pdf
import Keyboard
-- import Html.App as Html
import Html exposing (..)
import HP12c_KeyBoardInput exposing (..)
import HP12c_KeyTypes exposing (..)
import HP12c_Model exposing (..)
import HP12c_View exposing (..)
import HP12c_Update exposing (..)
-- import HP12c_Update_handlers exposing (..)
--import Array exposing (..)
-- SUBSCRIPTIONS
subscriptions : Model -> Sub Msg
subscriptions model =
Keyboard.presses (\code -> (keyCodeToMsg model.inputMode code))
-- Main
init : ( Model, Cmd Msg )
init =
( initialModel, Cmd.none )
main : Program Never Model Msg
main =
Html.program
-- WithFlags
{ init = init
, view = view
, update = update
, subscriptions =
subscriptions
-- \_ -> Sub.none
}