Awesome
purescript-howto-foreign-generic
See the blog post about this here: http://qiita.com/kimagure/items/00f97c7fc6cef178fa3c
Note!!! Do you need to just get some simple JSON parsed? Give Simple-JSON a try!
Important: Changes from Video and Slides
The lesson/slides were made with the previous version of foreign-generics. Here's a somewhat quick rundown of what's changed:
Old name | New name |
---|---|
IsForeign | Decode |
AsForeign | Encode |
write | encode |
read | decode |
readJSON | decodeJSON |
readGeneric | genericDecode |
toForeignGeneric | genericEncode |
This repo presents many common usages for Purescript-Foreign-Generic.
If you're just getting started, you might be interested in this repo instead.
Egghead lesson for basic introduction to Purescript-Foreign-Generic here
See the slides about this repo and purescript-foreign-generics here!