-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it be a good idea to write proper instances for MonadResult
?
#349
Comments
Also what I don't quite understand is; if we disregard overlapping instances, we get exactly |
|
You can imagine that class MonadResult m => MonadIO m It’s not possible to do that but the catchall instance mostly accomplishes the same thing. instance MonadIO m => MonadResult m |
perhaps I need to rephrase my issue here; currently, afaict, there's no way to escape from PQ but using IO; there's no way to actually interpret the SQL queries in any other way; what I want to do is interpret a subset of squeal queries in a pure way, there's no way of doing so currently, afaict, because of the |
I see. I’m afraid I didn’t anticipate such a need as reinterpreting |
Hi, currently the only instance for
MonadResult
is the catchall instance that then requires aMonadIO
; would it be a good idea to instead write proper instances for all the usual Monad transformers to be able to write interpretations that are not necessarily impure without using{-# OVERLAPPING #-}
pragmas on theMonadResult
instance?The text was updated successfully, but these errors were encountered: