-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade for 0.11 #116
upgrade for 0.11 #116
Conversation
1b5eb6d
to
b43b04c
Compare
updated node target version to 6 since 5 doesn't run the install script and the new LTS is 6 anyhow. |
src/Pux/Router.purs
Outdated
@@ -151,7 +151,7 @@ parseQuery s = Query <<< M.fromFoldable <<< catMaybes <<< map part2tuple $ parts | |||
part2tuple :: String -> Maybe (Tuple String String) | |||
part2tuple part = do | |||
let param' = S.split (S.Pattern "=") part | |||
guard $ A.length param' == 2 | |||
_ <- guard $ A.length param' == 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to discard Unit
explicitly. import Prelude.discard
@@ -59,11 +59,11 @@ start config = do | |||
htmlSignal = stateSignal ~> config.view | |||
mapAffect affect = launchAff $ unsafeCoerceAff do | |||
ev <- affect | |||
later $ case ev of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
later
was replaced with delay
(purescript-contrib/purescript-aff@1ed0d75)
delay (Milliseconds 0.0)
should therefore be placed above the case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like a smell, but yeah, updated
src/Pux.purs
Outdated
Nothing -> pure unit | ||
Just e -> liftEff $ send evChannel (singleton e) | ||
effectsSignal = effModelSignal ~> map mapAffect <<< _.effects | ||
runSignal $ effectsSignal ~> sequence_ | ||
_ <- runSignal $ effectsSignal ~> sequence_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to discard Unit
explicitly. import Prelude.discard
updated with @sloosch's suggestions |
No description provided.