Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains functions to print imports preserving original formatting.
- printLovelyImports :: Int -> Int -> [Comment] -> [Text] -> [ImportDecl SrcSpanInfo] -> [Text]
Documentation
printLovelyImports :: Int -> Int -> [Comment] -> [Text] -> [ImportDecl SrcSpanInfo] -> [Text] Source #
This function takes range of origin text for import and AST of imports without unused entinties and then converts import declarations into list of lines that should be printed.