Skip to content

Locally defined effects are not supported #2

@Willenbrink

Description

@Willenbrink

While exception%effect Eff works on the top-level of a module/file, locally defined effects do not.

let _ =
  let exception Exc in (* Valid *)
  let exception%effect Eff in (* Invalid, dangling extension node *)
  ...

I intend to submit a PR for this in the near future, this is primarily a note in case I don't get around to it (as I'm unfamiliar with the ppx system).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions