Closed blaxill closed 6 years ago
You can change the name in the mapping declaration with exprName
.
https://hackage.haskell.org/package/groundhog-th-0.8.0.1/docs/Database-Groundhog-TH.html
Thanks, I had seen the exprName but incorrectly assumed it modified the dbName.
Sum types with common fields appear not to work, e.g.:
When using the quasiquoting, it fails due to generating multiple bar field constructors:
Also using
mkPersist
without quasiquoting fails again due to duplicate constructors. I'd expect it to succeed and generate a schema sharing the common field for different constructors.Is there away around this without modifying the data structure (which in my case is deep in a dependency)?