Open parsonsmatt opened 3 years ago
I believe (->) already admits MonadReader. Just uncurry the function. tell would need to be manually lifted using const. I however don't feel that the code this leads to is particularly clear. Is there something I'm missing?
thinking that it'd be nice to have a monad for SqlExpr to make it a bit easier and clearer how to write code with it
This makes it much easier to write raw SQL expressions. Taking the example from the Finally Tagless blog post, we could write:
Needs some work to get the types to check but overall may be a nice UX improvement