Created
May 1, 2017 20:11
-
-
Save drager/699cd4c7a3f782e51fb0673881df0280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view : Model -> Html Msg | |
view model = | |
div [] | |
[ (case model.weather of | |
Just value -> | |
case List.head value.value of | |
Just first -> | |
(case Date.fromString (toString (first.date)) of | |
Result.Ok date -> | |
formatDate date | |
Result.Err _ -> | |
"" | |
) | |
Nothing -> | |
"" | |
Nothing -> | |
"" | |
) | |
|> text | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment