Skip to content

Update Data.Function constant for prelude 1.0#2213

Merged
paf31 merged 2 commits intopurescript:masterfrom
felixSchl:fix/data-function-constant
Jul 9, 2016
Merged

Update Data.Function constant for prelude 1.0#2213
paf31 merged 2 commits intopurescript:masterfrom
felixSchl:fix/data-function-constant

Conversation

@felixSchl
Copy link
Copy Markdown
Contributor

This fixes the compiler not inlining mkFn, since Data.Function has
moved to Data.Function.Uncurried

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 1, 2016

Coverage Status

Coverage increased (+0.01%) to 57.509% when pulling 10e451a on felixSchl:fix/data-function-constant into 7174a75 on purescript:master.

@garyb
Copy link
Copy Markdown
Member

garyb commented Jul 1, 2016

I think there needs to be a bit more updated than this - we need both Data.Function and Data.Function.Uncurried constants, since changing it like this will break the inlining for ($) and (#).

This fixes the compiler not inlining mkFnN, since `Data.Function` has
moved to `Data.Function.Uncurried`
@felixSchl felixSchl force-pushed the fix/data-function-constant branch from 10e451a to 846ca65 Compare July 2, 2016 04:03
@felixSchl
Copy link
Copy Markdown
Contributor Author

@garyb you're right. I gave it another go if you don't mind checking it. I had to update the inlining code to inline mkFnN in the Data.Function.Uncurried module

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 2, 2016

Coverage Status

Coverage increased (+0.05%) to 57.544% when pulling 846ca65 on felixSchl:fix/data-function-constant into 7174a75 on purescript:master.

@garyb
Copy link
Copy Markdown
Member

garyb commented Jul 2, 2016

Looks good to me! 👍

Can you add yourself to the CONTRIBUTORS.md as well please, since this is your first compiler contribution? (& congrats!)

@felixSchl
Copy link
Copy Markdown
Contributor Author

Sure thing, done :)

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 2, 2016

Coverage Status

Coverage increased (+0.05%) to 57.544% when pulling 1b87b78 on felixSchl:fix/data-function-constant into 7174a75 on purescript:master.

@paf31 paf31 merged commit 293c345 into purescript:master Jul 9, 2016
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Jul 9, 2016

Thanks!

archaeron pushed a commit to archaeron/purescript that referenced this pull request Apr 6, 2017
* Update mkFnN inlining for prelude 1.0

This fixes the compiler not inlining mkFnN, since `Data.Function` has
moved to `Data.Function.Uncurried`

* Update CONTRIBUTORS.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants