diff options
Diffstat (limited to 'frontend/app/Main.hs')
-rw-r--r-- | frontend/app/Main.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/app/Main.hs b/frontend/app/Main.hs index 9f30708..e4729b4 100644 --- a/frontend/app/Main.hs +++ b/frontend/app/Main.hs @@ -134,6 +134,11 @@ update__setCollections (Right collections) = Action $ \case handleEff :: Eff -> JSM Action handleEff E.ReloadCollections = update__setCollections <$> try API.REST.listCollections +handleEff (E.Log s) = pure . Action $ \case + m -> m <# (noOp <$> consoleLog s) + +noOp :: () -> Action +noOp _ = Action noEff viewModel :: Model -> View Action viewModel Loading = text ".." |