I'm trying to learn how the ($) operator works. I run
(+5) ($) 7
I get
* Non type-variable argument in the constraint: Num (a -> b)
(Use FlexibleContexts to permit this)
* When checking the inferred type
it :: forall a b.
(Num (a -> b), Num ((a -> b) -> a -> b)) =>
a -> b
Could anyone help me understand why I get this error ?