I created a tool called roc-types that uses the compiler to print type info for Roc programs. I use it for linting and refactoring. The README has a lot more detail.
https://github.com/showell/roc-types/blob/master/README.md
Here's the companion tool:
https://github.com/showell/roc-ast/blob/master/README.md
Both of these tools were partly motivated by discussions on Zulip, but I forget the exact context, so I apologize if I am not giving proper credit for any ideas or guidance here. I have been using both tools for about a month on my own codebases with great success. In particular, I used them to clean up some code snippets in #contributing > a little Roc book. I use Shale as well: see #off topic > shale programming language
Closely related: https://github.com/showell/zig-ast
see also #ideas > linear types
Last updated: Nov 26 2026 at 20:35 UTC