toddmohney / json-api

Haskell Implementation of the JSON-API specification
http://hackage.haskell.org/package/json-api
MIT License
35 stars 14 forks source link

Remove ToJSON and FromJSON constraints from ResourcefulEntity #42

Closed gwils closed 3 years ago

gwils commented 3 years ago

These constraints don't give anything, and the relevant constraint can be delegated to the call site when needed. I have some cases where a type only has one or the other JSON direction (eg. ToJSON but not FromJSON), and this constraint stops me from being able to use ResourcefulEntity.