From 4469d3cabf80252f941121ccac664e8cf225ac95 Mon Sep 17 00:00:00 2001 From: olaberglund Date: Mon, 8 Jun 2026 14:31:01 +0200 Subject: [PATCH] Fix: make subsumesEither commutative The arguments to `subRange` are repeated in both calls, in the second they should be swapped. Forgot to push this. --- .../src/Development/IDE/Plugin/CodeAction.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs b/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs index 57f5f9ed18..6e57a26a0e 100644 --- a/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs +++ b/plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs @@ -750,7 +750,7 @@ caDeleteUnusedBindings m contents allDiags contextRange uri _changeAnnotations = Nothing headToList [] = [] headToList (x : _) = [x] - subsumesEither (TE._range -> range1) (TE._range -> range2) = subRange range1 range2 || subRange range1 range2 + subsumesEither (TE._range -> range1) (TE._range -> range2) = subRange range1 range2 || subRange range2 range1 data ExportsAs = ExportName | ExportPattern | ExportFamily | ExportAll deriving (Eq)