Meta
Meta logoMeta · Feature trail

Haskell Code Refactoring Tool

1 post · Jul 2020

What this trail covers

Meta has developed and open-sourced Retrie, a code refactoring tool for Haskell that simplifies and enhances the process of codemodding large codebases. Retrie allows developers to express rewrites as Haskell equations, offering a balance between the power of AST manipulation and the speed of string replacement. It preserves local scoping, whitespace, and comments, while efficiently narrowing the search space before parsing. This tool has been instrumental in migrating and updating large Haskell codebases like the Sigma anti-abuse rule engine.

All Meta trails