garyb / purescript-codec-argonaut

Bi-directional JSON codecs for argonaut
MIT License
39 stars 16 forks source link

Update for PureScript 0.14 #35

Closed thomashoneyman closed 3 years ago

thomashoneyman commented 3 years ago

Hi @garyb! This PR updates codec-argonaut for PureScript 0.14.

  1. It updates your dependencies to new major dependencies in your bower.json file. I'm temporarily pointing at my fork of codec until that 0.14 PR is merged, at which point it can be updated here, too.
  2. It updates your package.json file to use the latest compiler, as well as a compatible Pulp version and psa version.
  3. It updates your source and test code and the README for compatibility with PureScript 0.14.

As far as the code changes go:

  1. The generics-rep library has been merged into prelude, and the instance for Show moved into Data.Show.Generic.
  2. There's no longer a need for the various proxy types, so I've replaced them everywhere with Proxy if you're using one, and forall proxy. proxy ... when it's in a function or class (so folks downstream can continue using whatever proxy type).
  3. RowList is now RowList Type, and # Type is now Row Type.

If this all looks good, then if / when the codec PR merges then this can be quickly updated and you could make a v8.0.0 release. I can then update the library in package sets for you.

thomashoneyman commented 3 years ago

As far as that dependency: https://github.com/garyb/purescript-codec/pull/8

thomashoneyman commented 3 years ago

Updated to use the new codec dependency.