Reputation: 613
Context
makeAff ∷ ∀ eff a. ((Either Error a → Eff eff Unit) → Eff eff (Canceler eff)) → Aff eff a
https://github.com/slamdata/purescript-aff/blob/master/src/Control/Monad/Aff.purs#L365
Question
Either Error a → Eff eff Unit
Should this be read at as...
Either
of Error
or a → Eff eff Unit
Either Error a
and returns Eff eff Unit
?
Does →
have a certain type infix precedence?
Upvotes: 1
Views: 75
Reputation: 2790
Application (the whitespace) is the highest precedence "operator" in Haskell while ->
is the lowest.
Upvotes: 2