A fast, friendly, functional language. https://roc-lang.org
Find a file
Richard Feldman 040c957d4a
Implement type defaulting for mono snapshot tests
Add getDefaultedTypeString() that defaults polymorphic types to concrete types:
- Flex vars with from_numeral constraint → Dec
- Tag unions matching [True, False] or [True, .._] → Bool
- Recursively defaults element types in List and Tuple

MONO section now shows properly monomorphized types:
- 42 : Dec
- [1, 2, 3] : List(Dec)
- (1, 2) : (Dec, Dec)
- True : Bool
- if True 1 else 2 : Dec

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 09:07:15 -05:00
.cargo
.devcontainer
.github retry on timeout 2025-12-16 18:28:44 +01:00
.reuse
ci Implement bitwise shifts (#8469) 2025-12-17 19:32:38 +01:00
crates don't ask to report issue for old compiler (#8683) 2025-12-15 17:01:43 +01:00
design
devtools
docker
examples
nix
src Implement type defaulting for mono snapshot tests 2025-12-22 09:07:15 -05:00
test Implement type defaulting for mono snapshot tests 2025-12-22 09:07:15 -05:00
.gitattributes
.gitignore Cleanup target handling and deuplication 2025-12-09 13:30:36 +11:00
.llvmenv
.rules Merge origin/main 2025-11-22 15:45:17 -05:00
AGENT.md
authors
build.zig Merge remote-tracking branch 'remote/cli-err-reporting' into implement-box-with-cli-err-reporting 2025-12-17 15:28:54 +11:00
build.zig.zon Simplify DecompressingHashReader 2025-10-21 15:32:53 +00:00
BUILDING_FROM_SOURCE.md Update Zig version from 0.15.1 to 0.15.2 2025-10-31 18:21:26 +01:00
Cargo.lock
Cargo.toml
code_of_conduct.md
CONTRIBUTING.md better error msg when no main.roc (#8251) 2025-09-29 19:02:26 +02:00
default.nix
flake.lock
flake.nix
Glossary.md ownership semantic docs and comptime check 2025-11-30 21:39:41 +11:00
legal_details
LICENSE
mlc_config.json
README.md
rust-toolchain.toml
shell.nix
typos.toml sigfault is not a typo 2025-12-05 23:16:14 -05:00
version.txt

Work in progress!

Roc is not ready for a 0.1 release yet, but we do have:

If you'd like to contribute, get started here. Don't hesitate to ask for help on our group chat, we're friendly!

Sponsors

You can 💜 sponsor 💜 Roc on:

We are very grateful for our corporate sponsors Lambda Class, ohne-makler, and Decem:

Lambda Class logo      ohne-makler logo      Decem logo

If you would like your company to become a corporate sponsor of Roc's development, please DM Richard Feldman on Zulip!

We'd also like to express our gratitude to our generous individual sponsors! A special thanks to those sponsoring $25/month or more:

Thank you all so much for helping Roc progress!