on master help sign in
Take out parens for record access. I am only fairly certain that this is okay.
commitebb570d46271bef2935fe2df52d9557c510f5bc1 authorevancz <info@elm-lang.org> dateSun 7 Apr 2013, 17:53 (14 years ago) parentd47614c
1 file changed+1−1
compiler/Gen/CompileToJS.hs+1−1
compiler/Gen/CompileToJS.hs+1−1
@@ -184,7 +184,7 @@ remove x e = "_N.remove('" ++ x ++ "', " ++ e ++ ")"
184184addField x v e = "_N.insert('" ++ x ++ "', " ++ v ++ ", " ++ e ++ ")"
185185setField fs e = "_N.replace(" ++ jsList (map f fs) ++ ", " ++ e ++ ")"
186186 where f (x,v) = "['" ++ x ++ "'," ++ v ++ "]"
187−access x e = parens e ++ "." ++ x
187+access x e = e ++ "." ++ x
188188makeRecord kvs = record `liftM` collect kvs
189189 where
190190 combine r (k,v) = Map.insertWith (++) k v r