Skip to content

Allow fixity, kind, role declarations in REPL#4046

Merged
JordanMartinez merged 1 commit intopurescript:masterfrom
rhendric:rhendric/fix-3978
Jun 19, 2021
Merged

Allow fixity, kind, role declarations in REPL#4046
JordanMartinez merged 1 commit intopurescript:masterfrom
rhendric:rhendric/fix-3978

Conversation

@rhendric
Copy link
Member

@rhendric rhendric commented Apr 5, 2021

It seems that advances in parsing and/or interpretation have made the
artificial restriction that used to exist on declarations in the REPL no
longer necessary. Fixity, kind, and role declarations are all tested and
working, and the only other types of declarations that exist in the AST
at this time are imports (which are specially handled in an earlier
parser), BoundValueDeclarations (which can't be created at the top
level), and binding groups (which are only created in desugaring).

Description of the change

Fixes #3978.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@rhendric rhendric force-pushed the rhendric/fix-3978 branch from a8cc5ca to 40c07e9 Compare April 5, 2021 18:31
@rhendric rhendric force-pushed the rhendric/fix-3978 branch from 40c07e9 to 764cfb4 Compare June 5, 2021 19:13
It seems that advances in parsing and/or interpretation have made the
artificial restriction that used to exist on declarations in the REPL no
longer necessary. Fixity, kind, and role declarations are all tested and
working, and the only other types of declarations that exist in the AST
at this time are imports (which are specially handled in an earlier
parser), BoundValueDeclarations (which can't be created at the top
level), and binding groups (which are only created in desugaring).
@rhendric rhendric force-pushed the rhendric/fix-3978 branch from 764cfb4 to 73950c8 Compare June 18, 2021 18:29
@rhendric
Copy link
Member Author

Nudge nudge, this should be a pretty quick review for somebody.

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

Successfully merging this pull request may close these issues.

Cannot define infix operators in REPL

3 participants

Comments