Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ormolu.Imports
Description
Manipulations on import lists.
Synopsis
- normalizeImports :: Bool -> [LImportDecl GhcPs] -> [[LImportDecl GhcPs]]
Documentation
normalizeImports :: Bool -> [LImportDecl GhcPs] -> [[LImportDecl GhcPs]] Source #
Sort, group and normalize imports.
Assumes input list is sorted by source location. Output list is not necessarily sorted by source location, so this function should be called at most once on a given input list.