f :: Lens a b -> a -> b -> a
This does one of two things.
∀ l x y. x /= y => f l x y x /= x
Now I know which.
@rightfold is thinking of a function with the type (a -> b) -> a -> b
The identity function specialized to functions.
2
a -> (a, a, a, a)
I definitely know what this function does.
(a, a, a, a) -> a
I almost know what this function does.
f :: Monad f=>f T -> f T
The result might depend on previous effect values
g :: Applicative f=>f T -> f T
This definitely doesn't though
Using Data.Foldable and parametricity, one can be sure that:
foldMap f &&& foldMap g = foldMap (f &&& g)
f :: [a] -> [a]
This type tells us some, but not all, things.
∀ x. f [x] = [x]
∀ x y. f (x++y) = f y++f x
These tests tell us the rest.
f :: a -> a -> a
This function does one of two things.
test = f 1 2 == 1
Now it is disambiguated between those two.
(~.~<.~>\\+.) :: (Profunctor p, Functor f) => (a -> f b) -> p b r -> f (p a r)
This operator clearly specifies what it does in the type.
(^.) :: s -> Getting a s a -> a
This function applies the Getter to (Const) and the (s), then unConst.
The operator name is unfamiliar.
Monad f => (a -> b) -> a -> f b
This function does \f a -> return (f a), then re-applies the effect zero or more times.
