I've defined my own operator:
infixr 6 >+
x >+ y = (+ x) y
It is right associative.
And now I want to use in the next expression:
(`mod` 14) (>+ 5) 10
But I get an error:
<interactive>:11:1:
Non type-variable argument in the constraint: Integral (a -> a)
(Use FlexibleContexts to permit this)
When checking that ‘it’ has the inferred type
it :: forall a. (Integral (a -> a), Num a) => a
How can I fix it?