git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update Data.Function constant for prelude 1.0 (#2213)
293c345Felix Schlitter
CONTRIBUTORS.md+1
@@ -72,6 +72,7 @@ This file lists the contributors to the PureScript compiler project, and the ter
72- [@LiamGoodacre](https://github.com/LiamGoodacre) (Liam Goodacre) My existing contributions and all future contributions until further notice are Copyright Liam Goodacre, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
72- [@LiamGoodacre](https://github.com/LiamGoodacre) (Liam Goodacre) My existing contributions and all future contributions until further notice are Copyright Liam Goodacre, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
73- [@bsermons](https://github.com/bsermons) (Brian Sermons) My existing contributions and all future contributions until further notice are Copyright Brian Sermons, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
73- [@bsermons](https://github.com/bsermons) (Brian Sermons) My existing contributions and all future contributions until further notice are Copyright Brian Sermons, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
74- [@bmjames](https://github.com/bmjames) (Ben James) My existing contributions and all future contributions until further notice are Copyright Ben James, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
74- [@bmjames](https://github.com/bmjames) (Ben James) My existing contributions and all future contributions until further notice are Copyright Ben James, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
75+- - [@felixSchl](https://github.com/felixSchl) (Felix Schlitter) My existing contributions and all future contributions until further notice are Copyright Felix Schlitter, and are licensed to the owners and users of the PureScript compiler project under the terms of the [MIT license](http://opensource.org/licenses/MIT).
75
76
76### Companies
77### Companies
77
78
src/Language/PureScript/CodeGen/JS/Optimizer/Inliner.hs+1−1
@@ -216,7 +216,7 @@ inlineCommonOperators = applyAll $
216
216
217 isNFn :: String -> Int -> JS -> Bool
217 isNFn :: String -> Int -> JS -> Bool
218 isNFn prefix n (JSVar _ name) = name == (prefix ++ show n)
218 isNFn prefix n (JSVar _ name) = name == (prefix ++ show n)
219− isNFn prefix n (JSAccessor _ name (JSVar _ dataFunction)) | dataFunction == C.dataFunction = name == (prefix ++ show n)
219+ isNFn prefix n (JSAccessor _ name (JSVar _ dataFunctionUncurried)) | dataFunctionUncurried == C.dataFunctionUncurried = name == (prefix ++ show n)
220 isNFn _ _ _ = False
220 isNFn _ _ _ = False
221
221
222 runFn :: Int -> JS -> JS
222 runFn :: Int -> JS -> JS
src/Language/PureScript/Constants.hs+3
@@ -391,5 +391,8 @@ dataEuclideanRing = "Data_EuclideanRing"
391dataFunction :: String
391dataFunction :: String
392dataFunction = "Data_Function"
392dataFunction = "Data_Function"
393
393
394+dataFunctionUncurried :: String
395+dataFunctionUncurried = "Data_Function_Uncurried"
396+
394dataIntBits :: String
397dataIntBits :: String
395dataIntBits = "Data_Int_Bits"
398dataIntBits = "Data_Int_Bits"