valderman / selda

A type-safe, high-level SQL library for Haskell
https://selda.link
MIT License
478 stars 58 forks source link

Expose tableName from Table #130

Closed Acentelles closed 4 years ago

Acentelles commented 4 years ago

I find that exposing the table name from the table data type is very convenient and I can't see any downsides with exposing it

valderman commented 4 years ago

I guess the one argument against it would be that something like select (someTable {tableName = "foo"}) might be a bit iffy, but it also has legitimate uses so let's go for it.