Skip to content

purescript needs some JavaScript specific behaviors #10

@thautwarm

Description

@thautwarm

https://github.com/purescript/purescript-effect/blob/master/src/Effect.js#L12

    return function () {
      return f(a())();
    };

where f is a purescript function. PureScript functions are curried, hence they must accept one and only one argument, but here they call it without arguments.

To speed up calling functions and making FFI easier, I think it could be better for each argument of purescript function has a default value () or None.

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