purescript 0.3.2 → 0.3.3
raw patch · 2 files changed
+3/−1 lines, 2 files
Files
purescript.cabal view
@@ -1,5 +1,5 @@ name: purescript-version: 0.3.2+version: 0.3.3 cabal-version: >=1.8 build-type: Simple license: MIT
src/Language/PureScript/CodeGen/JS.hs view
@@ -78,6 +78,8 @@ (JSObjectLiteral [ ("ctor", JSStringLiteral (show (Qualified (Just mp) pn))) , ("value", JSVar (Ident "value")) ])]) in [ ctorJs, setProperty ctor (JSVar (Ident ctor)) mp ]+declToJs opts mp (DataBindingGroupDeclaration ds) e =+ Just $ concat $ mapMaybe (flip (declToJs opts mp) e) ds declToJs _ mp (ExternDeclaration importTy ident (Just js) _) _ | importTy /= ForeignImport = Just [ js , setProperty (identToJs ident) (JSVar ident) mp ]