silkapp/pickler.js — pull request #1 by hesselink (2014-05-28 12:42:19+00:00)
Title: Generates buggy javascript.

@bergmark We generated new javascript for pickler.js, but it doesn't work. It seems to be related to the strict wrappers. If you use this version in our app, explore mode crashes with:

```
uncaught exception: unhandled case in map,function ($p1){
return new Fay$$$(function(){
var t = $p1;
return (function(){
var p = function($p1){
return new Fay$$$(function(){
var $tmp1 = Fay$$_($p1);
if ($tmp1 instanceof Fay$$Cons) {
var x = $tmp1.car;
var xs = $tmp1.cdr;
if (Fay$$_(Fay$$_(Fay$$_(Fay$$eq)(x))(t))) {
return Fay$$_(Prelude.Right)(Fay$$list([t,xs]));
}
}
return Fay$$_(Prelude.Left)(w);
});
};
var q = function($p1){
return new Fay$$$(function(){
var x = $p1;
if (Fay$$_(Fay$$_(Fay$$_(Fay$$eq)(x))(t))) {
return Fay$$_(Prelude.Right)(Fay$$list([t]));
}
return Fay$$_(Prelude.Left)(w);
});
};
var w = new Fay$$$(function(){
return Fay$$_(Pickler.Prim)(Fay$$_(Fay$$_(Pickler.Text.$60$$62$)(Fay$$_(Fay$$_(Pickler.Text.$60$$62$)("token '"))(t)))("'"));
});
return Fay$$_(Fay$$_(Fay$$_(Pickler.Pickler)(p))(q))(w);
})();
});
},table,list,barchart,columnchart,linechart,piechart,grid,map,groupby
```

This is with fay 0.20.0.4. Any ideas?