retrie-1.2.2: A powerful, easy-to-use codemodding tool for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Retrie.Rewrites.Function

Documentation

dfnsToRewrites :: LibDir -> [(FastString, Direction)] -> AnnotatedModule -> IO (UniqFM FastString [Rewrite (LHsExpr GhcPs)]) #

getImports :: LibDir -> Direction -> Maybe (LocatedA ModuleName) -> TransformT IO AnnotatedImports #

matchToRewrites :: LHsExpr GhcPs -> AnnotatedImports -> Direction -> LMatch GhcPs (LHsExpr GhcPs) -> TransformT IO [Rewrite (LHsExpr GhcPs)] #