hindent-6.0.0: Extensible Haskell pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

HIndent.Pretty.Import.Sort

Description

Import declaration sorting for pretty-printing.

Synopsis

Documentation

sortImportsByName :: [LImportDecl GhcPs] -> [LImportDecl GhcPs] Source #

This function sorts import declarations and explicit imports in them by their names.

sortImportsByLocation :: [LImportDecl GhcPs] -> [LImportDecl GhcPs] Source #

This function sorts imports by their start line numbers.