Maybe someone else finds this useful too: girard is a type annotator for Gleam, written in Gleam (built on top of glance). Given Gleam source, it runs the same type inference the compiler does and hands you the inferred type of every expression, plus each top-level definition's signature.
It should be stable enough to use out there: I've run it across the public hex ecosystem, comparing its per-expression output against the real Gleam compiler — and aside from a few parsing gaps in glance, it returns the same types.
I built it because most of the Gleam I write these days is written by machines, so I'm putting together some static-analysis tooling to help with that — and I needed the types.
A Gleam type annotator that mirrors the compiler's type inference - alvivi/girard
?