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

Retrie.Pretty

Synopsis

Documentation

ppSrcSpan :: ColoriseFun -> SrcSpan -> String Source #

Pretty print location of the file.

ppRepl :: HashMap Int String -> SrcSpan -> String -> [String] Source #

Get lines covering span and replace span with replacement string.

linesMap :: String -> IO (HashMap Int String) Source #

Return HashMap from line number to line of a file.