on master help sign in
Filter out VirtualDom.Debug for now
commit9e24b4f3a67a65bd02a4f562f8a07e89e2d3a87b authorEvan Czaplicki <evancz@users.noreply.github.com> dateWed 29 Mar 2017, 18:04 (10 years ago) parent39ae03c
1 file changed+8
src/Generate/JavaScript.hs+8
src/Generate/JavaScript.hs+8
@@ -72,6 +72,9 @@ crawl graph state@(State js seen natives effects) name@(Var.Global home _) =
7272 if Set.member name seen then
7373 state
7474
75+ else if home == virtualDomDebug then
76+ state
77+
7578 else
7679 case Map.lookup name graph of
7780 Just decl ->
@@ -84,6 +87,11 @@ crawl graph state@(State js seen natives effects) name@(Var.Global home _) =
8487 error (crawlError name)
8588
8689
90+virtualDomDebug :: ModuleName.Canonical
91+virtualDomDebug =
92+ ModuleName.inVirtualDom "VirtualDom.Debug"
93+
94+
8795crawlDecl :: Graph -> Var.Global -> Opt.Decl -> State -> State
8896crawlDecl graph name@(Var.Global home _) (Opt.Decl deps mfx body) state =
8997 let