git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
No special case for function definitions during codegen
commita7335ba6482e205f426b1d46b253ee72c2a7cd09 authorPhil Freeman <paf31@cantab.net> dateSun 5 Jan 2014, 15:56 (13 years ago) parentbadfe9e
1 file changed−3
src/Language/PureScript/CodeGen/JS.hs−3
src/Language/PureScript/CodeGen/JS.hs−3
@@ -43,9 +43,6 @@ moduleToJs (Module pname@(ProperName name) decls) env =
4343 ]
4444
4545declToJs :: ModuleName -> Declaration -> Environment -> Maybe [JS]
46−declToJs mp (ValueDeclaration ident _ _ (Abs args ret)) e =
47− Just [ JSFunction (Just ident) args (JSBlock [JSReturn (valueToJs mp e ret)]),
48− setProperty (identToJs ident) (JSVar ident) mp ]
4946declToJs mp (ValueDeclaration ident _ _ val) e =
5047 Just [ JSVariableIntroduction ident (Just (valueToJs mp e val)),
5148 setProperty (identToJs ident) (JSVar ident) mp ]