Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

Implemented kind-checker #1

Merged
merged 2 commits into from
May 11, 2019
Merged

Implemented kind-checker #1

merged 2 commits into from
May 11, 2019

Conversation

felko
Copy link
Contributor

@felko felko commented May 11, 2019

This pull requests checks for the well-formedness of types, and allows to infer the kind of any algebraic data type. Additional support for GADTs should be possible from what's already implemented. I also prepared the possibility for the user to define type aliases (for now there is just an undefined for them, since there is no parser for type aliases this should not be a problem). Types can be used in a function type signature before they are defined, since the type declarations are analyzed beforehand. However, mutually recursive type declarations are yet to be handled. The REPL now features a GHCi-inspired :kind command to see the inferred kind of any type.

@Mesabloo Mesabloo merged commit ceb900d into Mesabloo:master May 11, 2019
@Mesabloo Mesabloo added enhancement New feature or request kind-checking labels Oct 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants