valderman / selda

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

Exporting GSqlRow to be able to refer to it #164

Closed YPares closed 3 years ago

YPares commented 3 years ago

I'm only exporting the class name, not its methods.

That's useful when doing Generic hackery in client libraries. For instance I'm derivating Tables out of vinyl records, and in order to make Rec an instance to SqlRow, I need to refer to GSqlRow.

YPares commented 3 years ago

If you want to see an example of why/how, see https://github.com/YPares/selda/blob/work-branch/vinyl-example/app/Main.hs#L59 in my fork (it's a modified version of one of your examples).