Closed NariyasuHeseri closed 2 years ago
The notation might be a bit confusing. What it says is that the type of the two expressions is the same. And a lambda would make it clrearer:
Store f ~ \s -> Store f s
The notation might be a bit confusing. What it says is that the type of the two expressions is the same. And a lambda would make it clrearer:
Store f ~ \s -> Store f s
Thanks!
On page 349 (see the screenshot), shouldn't
Store f :: s -> Store f s
beStore f :: s -> Store (s -> a) s
? The expression on the right-hand side of::
is a type and apparentlyf
is a value with types -> a
.