Skip to content

Commit

Permalink
No default async IO
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnsit committed Jan 15, 2018
1 parent 28e452c commit 3df03de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion concur-react/src/Concur/React/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ runWidget (Widget w) root = go w
Free (Suspend io) -> liftIO io >>= \ws -> do
html <- mkReactParent (unsafeCoerce ("div" :: JSString)) <$> (bakeAttrs []) <*> (bakeReactHTML (view ws))
renderReactDOM root html
liftIO $ fromMaybe (return ()) $ runIO ws
liftIO (atomically $ fromMaybe (Free $ Suspend $ return ws) <$> cont ws) >>= go
1 change: 0 additions & 1 deletion concur-vdom/src/Concur/VDOM/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ runWidgetLoading (Widget w) root loading = do
Pure a -> liftIO (putStrLn "WARNING: Application exited: This may have been unintentional!") >> return a
Free (Suspend io) -> liftIO io >>= \ws -> do
void $ diff mnt (E.div () $ view ws) >>= patch mnt
liftIO $ fromMaybe (return ()) $ runIO ws
liftIO (atomically $ fromMaybe (Free $ Suspend $ return ws) <$> cont ws) >>= go mnt

0 comments on commit 3df03de

Please sign in to comment.