diff --git a/Main.elm b/Main.elm index 4f13ae8..14f413d 100644 --- a/Main.elm +++ b/Main.elm @@ -6,7 +6,7 @@ have everything set up properly. import Html exposing (..) import Html.Attributes exposing (..) -import Html.App +import Html.App as Html import Auth import Http import Task exposing (Task) @@ -15,7 +15,7 @@ import Json.Decode exposing (Decoder) main : Program Never main = - Html.App.program + Html.program { view = view , update = update , init = ( initialModel, searchFeed ) diff --git a/part10/ElmHub.elm b/part10/ElmHub.elm index f2381cf..bb477e0 100644 --- a/part10/ElmHub.elm +++ b/part10/ElmHub.elm @@ -3,7 +3,7 @@ module ElmHub exposing (..) import Html exposing (..) import Html.Attributes exposing (..) import Html.Events exposing (..) -import Html.App +import Html.App as Html import Http import Auth import Task exposing (Task) diff --git a/part10/Main.elm b/part10/Main.elm index 98f25b7..46942db 100644 --- a/part10/Main.elm +++ b/part10/Main.elm @@ -1,12 +1,12 @@ module Main exposing (..) import ElmHub exposing (..) -import Html.App +import Html.App as Html main : Program Never main = - Html.App.program + Html.program { view = view , update = update , init = ( initialModel, searchFeed initialModel.query ) diff --git a/part11/ElmHub.elm b/part11/ElmHub.elm index f6075ab..3940987 100644 --- a/part11/ElmHub.elm +++ b/part11/ElmHub.elm @@ -3,7 +3,7 @@ module ElmHub exposing (..) import Html exposing (..) import Html.Attributes exposing (..) import Html.Events exposing (..) -import Html.App +import Html.App as Html import Http import Auth import Task exposing (Task) diff --git a/part11/Main.elm b/part11/Main.elm index 98f25b7..46942db 100644 --- a/part11/Main.elm +++ b/part11/Main.elm @@ -1,12 +1,12 @@ module Main exposing (..) import ElmHub exposing (..) -import Html.App +import Html.App as Html main : Program Never main = - Html.App.program + Html.program { view = view , update = update , init = ( initialModel, searchFeed initialModel.query ) diff --git a/part12/ElmHub.elm b/part12/ElmHub.elm index f8a2ff1..8a62be7 100644 --- a/part12/ElmHub.elm +++ b/part12/ElmHub.elm @@ -3,7 +3,7 @@ module ElmHub exposing (..) import Html exposing (..) import Html.Attributes exposing (..) import Html.Events exposing (..) -import Html.App +import Html.App as Html import Http import Auth import Task exposing (Task) diff --git a/part12/Main.elm b/part12/Main.elm index 98f25b7..46942db 100644 --- a/part12/Main.elm +++ b/part12/Main.elm @@ -1,12 +1,12 @@ module Main exposing (..) import ElmHub exposing (..) -import Html.App +import Html.App as Html main : Program Never main = - Html.App.program + Html.program { view = view , update = update , init = ( initialModel, searchFeed initialModel.query ) diff --git a/part2/Main.elm b/part2/Main.elm index 9d2f7cc..6fe6d18 100644 --- a/part2/Main.elm +++ b/part2/Main.elm @@ -1,7 +1,7 @@ module Main exposing (..) import Html exposing (..) -import Html.App +import Html.App as Html import Html.Attributes exposing (..) import Html.Events exposing (onClick) @@ -66,7 +66,7 @@ update msg model = main = - Html.App.beginnerProgram + Html.beginnerProgram { view = view , update = update , model = initialModel diff --git a/part3/Main.elm b/part3/Main.elm index dc76c4a..154beaf 100644 --- a/part3/Main.elm +++ b/part3/Main.elm @@ -1,7 +1,7 @@ module Main exposing (..) import Html exposing (..) -import Html.App +import Html.App as Html import Html.Attributes exposing (..) import Html.Events exposing (onClick) @@ -97,7 +97,7 @@ update msg model = main = - Html.App.beginnerProgram + Html.beginnerProgram { view = view , update = update , model = initialModel diff --git a/part4/Main.elm b/part4/Main.elm index 5073e50..d21ac59 100644 --- a/part4/Main.elm +++ b/part4/Main.elm @@ -1,7 +1,7 @@ module Main exposing (..) import Html exposing (..) -import Html.App +import Html.App as Html import Html.Attributes exposing (..) import Html.Events exposing (onClick) @@ -96,7 +96,7 @@ update msg model = main = - Html.App.beginnerProgram + Html.beginnerProgram { view = view , update = update , model = initialModel diff --git a/part5/Main.elm b/part5/Main.elm index 4035ce5..c4e62fe 100644 --- a/part5/Main.elm +++ b/part5/Main.elm @@ -1,7 +1,7 @@ module Main exposing (..) import Html exposing (..) -import Html.App +import Html.App as Html import Html.Attributes exposing (class, target, href, property, defaultValue) import Html.Events exposing (..) import Json.Decode exposing (Decoder) @@ -10,7 +10,7 @@ import Json.Decode.Pipeline exposing (..) main : Program Never main = - Html.App.beginnerProgram + Html.beginnerProgram { view = view , update = update , model = initialModel diff --git a/part6/Main.elm b/part6/Main.elm index 3356fca..3c4aa39 100644 --- a/part6/Main.elm +++ b/part6/Main.elm @@ -5,7 +5,7 @@ import Html exposing (..) import Html.Attributes exposing (class, target, href, property, defaultValue) import Html.Events exposing (..) import Http -import Html.App +import Html.App as Html import Task exposing (Task) import Json.Decode exposing (Decoder) import Json.Decode.Pipeline exposing (..) @@ -13,7 +13,7 @@ import Json.Decode.Pipeline exposing (..) main : Program Never main = - Html.App.program + Html.program { view = view , update = update , init = ( initialModel, searchFeed initialModel.query ) diff --git a/part7/Main.elm b/part7/Main.elm index 45c9682..6c8a8fe 100644 --- a/part7/Main.elm +++ b/part7/Main.elm @@ -1,13 +1,13 @@ port module Main exposing (..) import ElmHub exposing (..) -import Html.App +import Html.App as Html import Json.Decode main : Program Never main = - Html.App.program + Html.program { view = view , update = update githubSearch , init = ( initialModel, githubSearch (getQueryString initialModel.query) ) diff --git a/part8/Main.elm b/part8/Main.elm index 45c9682..6c8a8fe 100644 --- a/part8/Main.elm +++ b/part8/Main.elm @@ -1,13 +1,13 @@ port module Main exposing (..) import ElmHub exposing (..) -import Html.App +import Html.App as Html import Json.Decode main : Program Never main = - Html.App.program + Html.program { view = view , update = update githubSearch , init = ( initialModel, githubSearch (getQueryString initialModel.query) ) diff --git a/part9/Main.elm b/part9/Main.elm index 98f25b7..46942db 100644 --- a/part9/Main.elm +++ b/part9/Main.elm @@ -1,12 +1,12 @@ module Main exposing (..) import ElmHub exposing (..) -import Html.App +import Html.App as Html main : Program Never main = - Html.App.program + Html.program { view = view , update = update , init = ( initialModel, searchFeed initialModel.query )