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 86 forks source link

A couple misc commits #415

Closed mgsloan closed 9 years ago

mgsloan commented 9 years ago

"Remove usage of spoon from encodeFay" makes it so that any errors encountered by encodeFay are properly thrown. In practice, this modification was needed for debugging such issues, as otherwise what was happening was quite opaque. showToFay's behavior remains the same - it yields Nothing when exceptions are encountered.

This is a breaking api change, and so should be accompanied by a major version bump.