Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applicative's ap argument order is reversed #144

Open
xvaldetaro opened this issue Jan 11, 2017 · 0 comments
Open

Applicative's ap argument order is reversed #144

xvaldetaro opened this issue Jan 11, 2017 · 0 comments

Comments

@xvaldetaro
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant