bitemyapp / esqueleto

New home of Esqueleto, please file issues so we can get things caught up!
BSD 3-Clause "New" or "Revised" License
370 stars 107 forks source link

`deriveEsqueletoRecord` should generate a `ToMaybe` instance #344

Open evanrelf opened 1 year ago

evanrelf commented 1 year ago

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.