@@ -78,6 +78,8 @@ declToJs _ mp (DataDeclaration _ _ ctors) _ =
78 (JSObjectLiteral [ ("ctor", JSStringLiteral (show (Qualified (Just mp) pn)))
78 (JSObjectLiteral [ ("ctor", JSStringLiteral (show (Qualified (Just mp) pn)))
79 , ("value", JSVar (Ident "value")) ])])
79 , ("value", JSVar (Ident "value")) ])])
80 in [ ctorJs, setProperty ctor (JSVar (Ident ctor)) mp ]
80 in [ ctorJs, setProperty ctor (JSVar (Ident ctor)) mp ]
81+declToJs opts mp (DataBindingGroupDeclaration ds) e =
82+ Just $ concat $ mapMaybe (flip (declToJs opts mp) e) ds
81declToJs _ mp (ExternDeclaration importTy ident (Just js) _) _ | importTy /= ForeignImport =
83declToJs _ mp (ExternDeclaration importTy ident (Just js) _) _ | importTy /= ForeignImport =
83 , setProperty (identToJs ident) (JSVar ident) mp ]
85 , setProperty (identToJs ident) (JSVar ident) mp ]