ramda-fantasy icon indicating copy to clipboard operation
ramda-fantasy copied to clipboard

Applicative's ap argument order is reversed

Open xvaldetaro opened this issue 8 years ago • 0 comments

Hi,

I have been studying functional JS from mostly-adequate-guide while always looking here and at fantasy-land to understand the implementation.

After some confusion looking at Apply's signature, I discovered that fantasy-land inverted ap's argument order here.

from: ap :: f (a -> b) -> f a -> fb to: ap :: f a -> f (a -> b) -> f b

However, looking the code here I see that the implementation follows the old signature. Although the new inverted order is opposite of haskell and looks ugly imo, I guess we should follow fantasy-land's specification.

xvaldetaro avatar Jan 11 '17 16:01 xvaldetaro