Skip to content

Commit 208f269

Browse files
committed
use makeDeltaAst in removeRedundantConstraints
1 parent 89a758d commit 208f269

File tree

1 file changed

+1
-1
lines changed
  • plugins/hls-refactor-plugin/src/Development/IDE/Plugin

1 file changed

+1
-1
lines changed

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ suggestFunctionConstraint df (L _ HsModule {hsmodDecls}) Diagnostic {..} missing
14741474

14751475
-- | Suggests the removal of a redundant constraint for a type signature.
14761476
removeRedundantConstraints :: DynFlags -> ParsedSource -> Diagnostic -> [(T.Text, Rewrite)]
1477-
removeRedundantConstraints df (L _ HsModule {hsmodDecls}) Diagnostic{..}
1477+
removeRedundantConstraints df (makeDeltaAst -> L _ HsModule {hsmodDecls}) Diagnostic{..}
14781478
-- • Redundant constraint: Eq a
14791479
-- • In the type signature for:
14801480
-- foo :: forall a. Eq a => a -> a

0 commit comments

Comments
 (0)