valderman / selda

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

Resource-pool based transformer #160

Closed TomMD closed 3 years ago

TomMD commented 3 years ago

Selda's PSQL operation encourages a single connection for the lifetime of a monad. I had other needs and made a resource-pool based monad transformer. This could be upstreamed but judging by the pro-minimalistic language you'd favor having it in a separate package. Thoughts?

seanhess commented 3 years ago

@TomMD Personally I think an example on the website somewhere would be enough. I'd be happy to provide one if it's helpful, or I'm sure you have one