We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asks
ComonadEnv
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
The current definition is more restrictive than necessary. Modify as follows.
from asks :: forall e1 e2 w. ComonadEnv e1 w => (e1 -> e2) -> w e1 -> e2 to asks :: forall e1 e2 w a. ComonadEnv e1 w => (e1 -> e2) -> w a -> e2
asks :: forall e1 e2 w. ComonadEnv e1 w => (e1 -> e2) -> w e1 -> e2
asks :: forall e1 e2 w a. ComonadEnv e1 w => (e1 -> e2) -> w a -> e2
The Haskell definition is as follows. asks :: ComonadEnv e w => (e -> e') -> w a -> e'
asks :: ComonadEnv e w => (e -> e') -> w a -> e'
The text was updated successfully, but these errors were encountered:
Also, ComonadAsk instead of ComonadEnv may be sufficient.
ComonadAsk
Sorry, something went wrong.
👍 to both suggestions.
I'd say asks's type is a bug even, it makes no sense to require w e1, probably makes the function unusable most of the time.
w e1
Successfully merging a pull request may close this issue.
The current definition is more restrictive than necessary. Modify as follows.
from
asks :: forall e1 e2 w. ComonadEnv e1 w => (e1 -> e2) -> w e1 -> e2
to
asks :: forall e1 e2 w a. ComonadEnv e1 w => (e1 -> e2) -> w a -> e2
The Haskell definition is as follows.
asks :: ComonadEnv e w => (e -> e') -> w a -> e'
The text was updated successfully, but these errors were encountered: