module Main exposing ( main ) import Navigation import Time import Msg exposing (Msg(UpdatePage)) import Model exposing (init) import Update exposing (update) import View exposing (view) import Page import Tooltip main = Navigation.programWithFlags (UpdatePage << Page.fromLocation) { init = init , view = view , update = update , subscriptions = (\model -> Sub.batch [ Time.every 1000 Msg.UpdateTime , Sub.map Msg.Tooltip Tooltip.subscription ] ) }