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

Parsing for TypeClassLang #60

Open
hrutvik opened this issue Sep 26, 2023 · 1 comment
Open

Parsing for TypeClassLang #60

hrutvik opened this issue Sep 26, 2023 · 1 comment
Milestone

Comments

@hrutvik
Copy link
Collaborator

hrutvik commented Sep 26, 2023

Redirect parsing to target TypeClassLang

Aside from PureLang's existing constructs, this will need to handle:

  • class and instance declarations
  • contexts/type class constraints in types
  • TypeClassLang's new top-level program structure
  • pattern guards
  • type annotations at the expression-level
@hrutvik hrutvik added this to the Type classes milestone Sep 26, 2023
@Gordon-Sau
Copy link

Gordon-Sau commented Oct 30, 2023

Class and Instance declarations are included in the AST, and the types are expanded with constraints. There are incremental updates in the parser.

Design Decision

  • It is decided that the parser should raise errors when a top level type signature is found inside Instance block

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

2 participants