aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Main.elm
blob: fa1415daab348c3fae2a21886aff582d85510e17 (plain)
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
module Main exposing
  ( main
  )

import Navigation
import Time
import Msg

import Model exposing (init)
import Update exposing (update, urlUpdate)
import View exposing (view)
import Page
import Tooltip

main =
  Navigation.programWithFlags (Navigation.makeParser Page.fromHash)
    { init = init
    , view = view
    , update = update
    , urlUpdate = urlUpdate
    , subscriptions = (\model ->
        Sub.batch
          [ Time.every 1000 Msg.UpdateTime
          , Sub.map Msg.Tooltip Tooltip.subscription
          ]
      )
    }