mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
A fast, friendly, functional language.
https://roc-lang.org
![]() When we attempt to bind a type argument to an ability in an alias/opaque instantiation, we create a fresh flex var to represent satisfaction of the ability, and then unify the type argument with that flex var. Previously, we did not register this fresh var in the appropriate rank pool. Usually this is not a problem; however, our generalization algorithm is such that we skip adjusting the rank of redundant variables. Redundant variables are those that are in the same unification tree, but are not the root of the unification trees. This means that if such a flex able var becomes the root of a unification tree with the type argument, and the type argument is itself generalized, we will have missed generalization of the argument. The fix is simple - make sure to register the flex able var into the appropriate rank pool. Closes #4408 |
||
---|---|---|
.cargo | ||
.github | ||
.reuse | ||
ci | ||
crates | ||
design | ||
devtools | ||
examples | ||
getting_started | ||
nightly_benches | ||
www | ||
.gitignore | ||
.llvmenv | ||
AUTHORS | ||
BUILDING_FROM_SOURCE.md | ||
Cargo.lock | ||
Cargo.toml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
default.nix | ||
FAQ.md | ||
flake.lock | ||
flake.nix | ||
LEGAL_DETAILS | ||
LICENSE | ||
mlc_config.json | ||
README.md | ||
roc-for-elm-programmers.md | ||
rust-toolchain.toml | ||
shell.nix | ||
TUTORIAL.md | ||
typos.toml | ||
version.txt |
Work in progress!
Roc is not ready for a 0.1 release yet, but we do have:
- installation guide
- tutorial
- docs for the standard library
- frequently asked questions
- Zulip chat for help, questions and discussions
If you'd like to get involved in contributing to the language, the Zulip chat is also the best place to get help with good first issues.
Sponsors
We are very grateful to our sponsors NoRedInk, rwx, and Tweede golf.
If you or your employer would like to sponsor Roc's development, please DM Richard Feldman on Zulip!