Is there a standard applicative reader instance?
1 answer
Yes. By the time the object itself Applicative
is in scope, the instance for is (->) r
also in scope. (And that should be true for code you wrote even for type checking - have you noticed that an instance Applicative
for is Reader
just sent to an instance Applicative
for (->) r
? =)
+6
source to share