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

Add `ToAlias`, `ToAliasReference` to `deriveEsqueletoRecord` #329

Closed ivanbakel closed 1 year ago

ivanbakel commented 1 year ago

These instances are required for some Esqueleto functions, such as using records in Common Table Expressions with with.

They are simply defined by lifting the record SQL constructor over the appropriate monad.

Before submitting your PR, check that you've:

After submitting your PR:

parsonsmatt commented 1 year ago

This is fantastic, thanks for implementing this for us!