Perhaps this is not the right place to ask and presumably this question is too 'meta', but is there any reason the <*>
(and analogously <$>
) function is infix? To my understanding and my knowledge (thus far) of Haskell it does the same as fmap
.
So, why is fmap
not infix but its Applicative and Functor variant are?
<$>
,<*>
, and=<<
all being variations on function application. So it's helpful to give them all vaguely similar syntax. As Cale Gibbard (I think) said, it's unfortunate that$
is right associative while all the other sorts of application are left associative.<*>
isn't the same as fmap: rather,<$>
is actually a synonym for fmap, and<*>
is something that is a lot like fmap, but a bit different.