Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Import declaration sorting for pretty-printing.
Synopsis
- sortImportsByName :: [LImportDecl GhcPs] -> [LImportDecl GhcPs]
- sortImportsByLocation :: [LImportDecl GhcPs] -> [LImportDecl GhcPs]
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.