contents of Maybe were not converted to JS on export
This commit is contained in:
Evan Czaplicki 2014-02-08 17:05:52 +01:00
parent a5684ff356
commit c4628749e1

View file

@ -109,7 +109,7 @@ out tipe x =
| ctor == "Maybe.Maybe" ->
CondExpr () (equal (DotRef () x (var "ctor")) (string "Nothing"))
(NullLit ())
(DotRef () x (var "_0"))
(out t (DotRef () x (var "_0")))
| ctor == "_List" ->
DotRef () (obj "_J.fromList" <| x) (var "map") <| outgoing t