Ppx_spice v0.3.0 released - ReScript v12 support

Hi everyone,

I’m happy to announce the release of ppx_spice v0.3.0 with full ReScript v12 support.

https://www.npmjs.com/package/@greenlabs/ppx-spice/v/0.3.0

GitHub: GitHub - green-labs/ppx_spice: ReScript PPX which generates the JSON (de)serializers

Feedback and issues are welcome!

Special thanks to @illusionalsagacity

10 Likes

This couldn’t have come at a better time, thank you!

1 Like

Quick question before I file an issue! Is Spice supposed to work with generic types? e.g.

@spice
type t<'a> = {
  prop: 'a
}

It seems to be broken for me, and I can’t find any examples like this in the spice docs or examples. Thanks!

Well I changed my mind and filed an issue anyway :smile:

Really appreciate your time and input. Happy to work with you on this one, but right now I’m totally baffled how ReScript gets the error message SO WRONG!

4 │ let object_encode = () => dataObject_encode(Obj.magic)

This function has type ('a => JSON.t) => dataObject<'a> => JSON.t
It only accepts 2 arguments; here, it's called with more.

:thinking: