faylang / fay

A proper subset of Haskell that compiles to JavaScript
https://github.com/faylang/fay/wiki
BSD 3-Clause "New" or "Revised" License
1.29k stars 89 forks source link

Syb show to fay #403

Closed chrisdone closed 10 years ago

chrisdone commented 10 years ago

This introduces the following breaking changes to Fay.Convert:

And adds the following features:

To migrate code using Rational or Integer, use encodeFay and pass an argument e.g. something like

(\f x -> maybe (f x) myIntegerToValueConversion (cast x))

and likewise to decodeFay.

bergmark commented 10 years ago

Thanks a lot! I've been wanting to get rid of pretty-show for a long time. The new serialization option is just gravy :-)