importify-1.0: Tool for haskell imports refactoring

Safe HaskellNone
LanguageHaskell2010

Importify.Pretty

Description

This module contains functions to print imports preserving original formatting.

Synopsis

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.