From 90415ddb2c516cc23650a2681e7c8fb31623ec6b Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 23 Nov 2020 21:56:14 +0530 Subject: use document instead of element, prefer point-free --- src/Main.elm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Main.elm b/src/Main.elm index db4c2f4..20443fd 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -14,14 +14,14 @@ import Random import Styles exposing (styledButton, styledInput, styledTextBox, wordStyle) import Task import Time -import Utils exposing (isJust, isNothing) +import Utils exposing (flip, isJust, isNothing) import Views exposing (..) main = - Browser.element + Browser.document { init = init - , view = view >> toUnstyled + , view = \m -> { title = "typers", body = [ view m |> toUnstyled ] } , update = update , subscriptions = subscriptions } @@ -34,7 +34,7 @@ subscriptions model = stringsToWords : List String -> List Word stringsToWords ls = - List.map (\w -> Word w Todo) ls + List.map (flip Word <| Todo) ls generateWords : Config -> Cmd Msg -- cgit v1.2.3