retrie-0.1.1.1: A powerful, easy-to-use codemodding tool for Haskell.
Retrie.Pretty
noColor :: ColoriseFun Source #
addColor :: ColoriseFun Source #
ppSrcSpan :: ColoriseFun -> SrcSpan -> String Source #
Pretty print location of the file.
type ColoriseFun = ColorIntensity -> Color -> String -> String Source #
strip :: String -> String Source #
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.