Postgresql – Idiomatic way to define new vs persisted types in Haskell
I have a type that represents a persisted record. I want to have a very similar type that represents data that should be POSTed to create a new record. This is the full type: data Record = Reading { id:…