Closed robinp closed 9 years ago
Note: this is a problem with the strictness wrapper, since calling either function from Fay works as expected.
This is a duplicate of #409 which contains a workaround. The conversion from JS array to list is what causes the issue
Bug.hs:
bug.html:
compile: fay src/client/Bug.hs --include src/client -o generated/bug.js --strict Main --library --package fay-text
console output: f2 apple 0 {"instance":"Rec","unRec":[]} <--- fail to unserialize inside list f1 apple 2 {"instance":"Rec","unRec":[1,2]}