Where is Foreign.Generic?

I’m working through the FP Made Easier book and am trying to work with
Foreign.Generic and Foreign.Generic.Class. But my IDE says it can’t find them and when I try to install them with spago, I get:

The following packages do not exist in your package set:

  • foreign-generic

What am I doing wrong?

Since PureScript v0.15, this library stopped working. I think you should inspect Data.Argonaut.Decode.Class - purescript-argonaut-codecs - Pursuit instead.

1 Like

Ah, that’s what I suspected. So the book is a little out of date.

I am actually looking at Argonaut Encode and Decode. Glad to hear I’m on the right track.

Yes, unfortunately, this nice book was released just before v0.15.