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

Bad suggested fix for IncorrectAnonymousArgument error #320

Open
milesfrain opened this issue May 21, 2020 · 0 comments
Open

Bad suggested fix for IncorrectAnonymousArgument error #320

milesfrain opened this issue May 21, 2020 · 0 comments

Comments

@milesfrain
Copy link
Contributor

A suggested fix in https://github.com/purescript/documentation/blob/master/errors/IncorrectAnonymousArgument.md#fix is:

mapArray = _ `map` [1, 2, 3]

But this fails to compile.

To reproduce:

spago init
echo "mapArray = _ \`map\` [1, 2, 3]" >> src/Main.purs
spago build
Error found:
at src/Main.purs:11:1 - 11:29 (line 11, column 1 - line 11, column 29)

  An anonymous function argument appears in an invalid context.

See https://github.com/purescript/documentation/blob/master/errors/IncorrectAnonymousArgument.md for more information,
or to contribute content related to this error.

[error] Failed to build.
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