haskell-tools-refactor-1.0.0.4: Refactoring Tool for Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Refactor.Utils.Helpers

Description

Helper functions for defining refactorings.

Synopsis

Documentation

removeEmptyBnds :: Simple Traversal Module ValueBind -> Simple Traversal Module Expr -> Module -> Module Source #

Remove the container (where or let) when the last binding is removed.

normalizeElements :: [Ann e dom SrcTemplateStage] -> [Ann e dom SrcTemplateStage] Source #

Puts the elements in the orginal order and remove duplicates (elements with the same source range)