Bad suggested fix for `IncorrectAnonymousArgument` error · Issue #320 · purescript/documentation · GitHub
Skip to content

Bad suggested fix for IncorrectAnonymousArgument error #320

Open

Description

@milesfrain

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions