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.