Skip to content
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

Closed
wants to merge 1 commit into from
Closed

upgrade for 0.11 #116

wants to merge 1 commit into from

Conversation

justinwoo
Copy link
Contributor

@justinwoo justinwoo commented Apr 19, 2017

No description provided.

@justinwoo
Copy link
Contributor Author

updated node target version to 6 since 5 doesn't run the install script and the new LTS is 6 anyhow.

@@ -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
Copy link

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
Copy link

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

Copy link
Contributor Author

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_
Copy link

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

@justinwoo
Copy link
Contributor Author

updated with @sloosch's suggestions

@alexmingoia alexmingoia closed this May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants