Skip to content

Commit 3f75e54

Browse files
wavewave9999years
authored andcommitted
use makeDeltaAst in removeRedundantConstraints
1 parent 5b83a90 commit 3f75e54

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
@@ -1475,7 +1475,7 @@ suggestFunctionConstraint df (L _ HsModule {hsmodDecls}) Diagnostic {..} missing
14751475

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

0 commit comments

Comments
 (0)