Skip to content

Commit

Permalink
Get rid of redundant spaces in whitespace, #76.
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Sep 17, 2018
1 parent b6af877 commit 47653ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions www/view/FlareTiming/Comp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ comp ns cs = do
dynText subtitle
elClass "div" "example" $ do
nominal n

nominal :: forall t (m :: * -> *).
MonadWidget t m =>
Dynamic t (Maybe (Int, Nominal)) -> m ()
Expand Down Expand Up @@ -100,7 +100,7 @@ nominal n = do
elClass "span" "tag is-primary" $ text $ T.pack goal)

return ()

comps :: MonadWidget t m => m ()
comps = do
pb :: Event t () <- getPostBuild
Expand All @@ -119,7 +119,7 @@ getComps () = do
let defReq = "http://localhost:3000/comps"
let req md = XhrRequest "GET" (maybe defReq id md) def
rsp <- performRequestAsync $ fmap req $ leftmost [ Nothing <$ pb ]

let es :: Event t [Comp] = fmapMaybe decodeXhrResponse rsp
xs :: Dynamic t [Comp] <- holdDyn [] es
let ys :: Dynamic t [(Int, Comp)] = fmap (zip [1 .. ]) xs
Expand All @@ -130,7 +130,7 @@ getNominals () = do
let defReq = "http://localhost:3000/nominals"
let req md = XhrRequest "GET" (maybe defReq id md) def
rsp <- performRequestAsync $ fmap req $ leftmost [ Nothing <$ pb ]

let es :: Event t [Nominal] = fmapMaybe decodeXhrResponse rsp
xs :: Dynamic t [Nominal] <- holdDyn [] es
let ys :: Dynamic t [(Int, Nominal)] = fmap (zip [1 .. ]) xs
Expand All @@ -146,4 +146,3 @@ viewComps () = do
simpleList cs (comp ns)

return ()

5 changes: 2 additions & 3 deletions www/view/FlareTiming/Task.hs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ task ix = do
elClass "p" "" $ do
el "a" $ do
dynText subtitle

tasks :: MonadWidget t m => m ()
tasks = do
pb :: Event t () <- getPostBuild
Expand All @@ -110,7 +110,7 @@ getTasks () = do
let defReq = "http://localhost:3000/tasks"
let req md = XhrRequest "GET" (maybe defReq id md) def
rsp <- performRequestAsync $ fmap req $ leftmost [ Nothing <$ pb ]

let es :: Event t [Task] = fmapMaybe decodeXhrResponse rsp
xs :: Dynamic t [Task] <- holdDyn [] es
let ys :: Dynamic t [(Int, Task)] = fmap (zip [1 .. ]) xs
Expand All @@ -120,4 +120,3 @@ getTasks () = do
simpleList ys task

return ()

0 comments on commit 47653ea

Please sign in to comment.