Repository navigation
What is the difference between the Reader and Input effects? #386
Unanswered
eldritch-cookie
asked this question in
Q&A
Replies: 2 comments 2 replies
|
You mean https://hackage-content.haskell.org/package/effectful-core-2.7.1.2/docs/Effectful-Reader-Static.html for your first link. One difference is that |
0 replies
|
Input has no local, so you can't override the initial value within runInput, that's the only difference. Note that this only applies to the static variant, because with dynamic Input you can override the value (well, the handler that gives you the value to be precise) with interpose. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
looking at Effectful.Reader.Static and Effectful.Input.Static runReader has the same type as runInput with the only difference i can see is that runInput is point-free, ask and input look the same. is the only difference the HasCallStack constraint?
All reactions