Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- replace :: (Data a, MonadIO m) => Context -> a -> TransformT (WriterT Change m) a
- data Replacement = Replacement {}
- data Change
Documentation
replace :: (Data a, MonadIO m) => Context -> a -> TransformT (WriterT Change m) a Source #
Specializes replaceImpl
to each of the AST types that retrie supports.
data Replacement Source #
Records a replacement made. In cases where we cannot use ghc-exactprint to print the resulting AST (e.g. CPP modules), we fall back on splicing strings. Can also be used by external tools (search, linters, etc).
Instances
Show Replacement Source # | |
Defined in Retrie.Replace showsPrec :: Int -> Replacement -> ShowS # show :: Replacement -> String # showList :: [Replacement] -> ShowS # |