Gleam v1.18.0 has been released with a major focus on language server improvements. Key additions include full record field support (go-to-definition, find-references, rename), type variable renaming, automatic import updates when modules are renamed, and several new code actions: pattern match on value for function calls, integer base conversion, missing type generation, and comment-to-doc-comment conversion. The JavaScript code generator now uses data singletons for equivalent data structures, improving runtime performance especially in Lustre view functions. The compiler's formatter is up to 13% faster with 10% less peak memory usage thanks to memory arena internals. Other improvements include git dependency path support for monorepos, Hex API key support via environment variable, and deprecation of ambiguous pipe syntax.

13m read timeFrom gleam.run
Post cover image
Table of contents
Language server record field supportType variable renamingUpdating imports for renamed modulesPattern match on value code actionFaster JavaScript with data singletonsAmbiguous pipe syntax deprecationGit dependency path supportRaising Hex API limitsHex experience improvementsConvert int base code actionGenerate missing type code actionComment conversion code actionsRedundant alias fixingFaster compilation with arenasAnd more!Support Gleam
10.3K Impressions