esqueleto icon indicating copy to clipboard operation
esqueleto copied to clipboard

`deriveEsqueletoRecord` should generate a `ToMaybe` instance

Open evanrelf opened this issue 3 years ago • 0 comments

For example, if I have this data type:

data Person = Person
  { name :: Text
  , age :: Natural
  }

If I invoke deriveEsqueletoRecord, I'll get a new SqlPerson data type, but it's missing a ToMaybe instance, which seems to be necessary for using the type in left joins.

evanrelf avatar Nov 15 '22 00:11 evanrelf