Fix #1088, record constructors only exist for closed records
commit2667e18214a66f7ba2795d49499c616e90285dea
authorEvan Czaplicki <info@elm-lang.org>
dateThu 8 Oct 2015, 13:53 (11 years ago)
parent84bfb4e
src/Canonicalize/Setup.hs+1−1
@@ -326,7 +326,7 @@ declToPatches moduleName (A.A (region,_) decl) =
326326 D.TypeAlias name tvars alias ->
327327 ( Just (node region name tvars alias)
328328 , case alias of
329− A.A _ (Type.RRecord _ _) ->
329+ A.A _ (Type.RRecord _ Nothing) ->
330330 [topLevel Env.Value name]
331331 _ ->
332332 []