Skip to content

Commit 93e7cdd

Browse files
authored
Refactor main and updateModel function signatures
1 parent e55f7a1 commit 93e7cdd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Main.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ foreign export javascript "hs_start" main :: IO ()
5454
----------------------------------------------------------------------------
5555
-- | Main entry point
5656
main :: IO ()
57-
main = run (startApp app)
57+
main = startApp app
5858
----------------------------------------------------------------------------
5959
-- | Custom styling
6060
css :: MisoString
@@ -88,7 +88,7 @@ app = (component (Model mempty) updateModel viewModel)
8888
#endif
8989
----------------------------------------------------------------------------
9090
-- | Update function
91-
updateModel :: Action -> Transition Model Action
91+
updateModel :: Action -> Effect ROOT Model Action
9292
updateModel = \case
9393
ReadFile input ->
9494
M.withSink $ \sink -> do

0 commit comments

Comments
 (0)