Add annotations to 4
This commit is contained in:
@@ -24,6 +24,7 @@ type Msg
|
|||||||
| DeleteById Int
|
| DeleteById Int
|
||||||
|
|
||||||
|
|
||||||
|
initialModel : Model
|
||||||
initialModel =
|
initialModel =
|
||||||
{ query = "tutorial"
|
{ query = "tutorial"
|
||||||
, results =
|
, results =
|
||||||
@@ -51,6 +52,7 @@ initialModel =
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
elmHubHeader : Html Msg
|
||||||
elmHubHeader =
|
elmHubHeader =
|
||||||
header []
|
header []
|
||||||
[ h1 [] [ text "ElmHub" ]
|
[ h1 [] [ text "ElmHub" ]
|
||||||
@@ -89,12 +91,15 @@ viewSearchResult result =
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
update : Msg -> Model -> Model
|
||||||
update msg model =
|
update msg model =
|
||||||
-- TODO if we get a SetQuery action, use it to set the model's query field,
|
-- TODO if we get a SetQuery action, use it to set the model's query field,
|
||||||
-- and if we get a DeleteById action, delete the appropriate result
|
-- and if we get a DeleteById action, delete the appropriate result
|
||||||
model
|
model
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
main : Program Never
|
||||||
main =
|
main =
|
||||||
Html.beginnerProgram
|
Html.beginnerProgram
|
||||||
{ view = view
|
{ view = view
|
||||||
|
|||||||
Reference in New Issue
Block a user