summaryrefslogtreecommitdiff
blob: 705cff74b2eb7482159cfcea48743d030577e394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module ElmModule.Init exposing (init)

-- Elm -------------------------------------------------------------------------

-- Main Menu -------------------------------------------------------------------
import Struct.Event
import Struct.Flags
import Struct.Model

--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
init : Struct.Flags.Type -> (Struct.Model.Type, (Cmd Struct.Event.Type))
init flags = (Struct.Model.new flags)