Commit 3ddddbeb authored by Sudhir Kumar's avatar Sudhir Kumar

updated build script & added tree for testing

parent cb9cfeca
#!/bin/bash #!/bin/bash
yarn install && psc-package install && pulp --psc-package build && pulp --psc-package browserify --to dist/bundle.js yarn && yarn psc-package install && yarn pulp --psc-package build && yarn pulp --psc-package browserify --to dist/bundle.js
This diff is collapsed.
...@@ -68,9 +68,13 @@ performAction Initialize _ state = void do ...@@ -68,9 +68,13 @@ performAction Initialize _ state = void do
case state.initialized of case state.initialized of
false -> do false -> do
lnodes <- lift $ Tree.loadDefaultNode lnodes <- lift $ Tree.loadDefaultNode
void $ modifyState $ _ { initialized = true, ntreeState = lnodes } case lnodes of
Left err -> do
modifyState identity
Right d -> do
modifyState $ _ { initialized = true, ntreeState = d }
_ -> do _ -> do
pure unit modifyState identity
performAction (LoginA _) _ _ = pure unit performAction (LoginA _) _ _ = pure unit
performAction (AddCorpusA _) _ _ = pure unit performAction (AddCorpusA _) _ _ = pure unit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment