File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
plugins/hls-refactor-plugin/src/Development/IDE/Plugin Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ referenceImplementation ::
87
87
(t -> s ) ->
88
88
-- | The original value, rendered string and score.
89
89
Maybe (Fuzzy t s )
90
- referenceImplementation pattern t pre post extract =
90
+ referenceImplementation pat t pre post extract =
91
91
if null pat then Just (Fuzzy t result totalScore) else Nothing
92
92
where
93
93
null :: (T. TextualMonoid s ) => s -> Bool
@@ -118,7 +118,7 @@ referenceImplementation pattern t pre post extract =
118
118
( 0 ,
119
119
1 , -- matching at the start gives a bonus (cur = 1)
120
120
mempty ,
121
- pattern ,
121
+ pat ,
122
122
True
123
123
)
124
124
s
Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ import Development.IDE.Plugin.Plugins.FillHole (suggestFillH
65
65
import Development.IDE.Plugin.Plugins.FillTypeWildcard (suggestFillTypeWildcard )
66
66
import Development.IDE.Plugin.Plugins.ImportUtils
67
67
import Development.IDE.Plugin.TypeLenses (suggestSignature )
68
+ import Development.IDE.Types.Diagnostics
68
69
import Development.IDE.Types.Exports
69
70
import Development.IDE.Types.Location
70
71
import Development.IDE.Types.Options
71
- import Development.IDE.Types.Diagnostics
72
72
import GHC (AddEpAnn (AddEpAnn ),
73
73
AnnsModule (am_main ),
74
74
DeltaPos (.. ),
@@ -2008,6 +2008,7 @@ smallerRangesForBindingExport lies b =
2008
2008
| T. unpack (printOutputable thing) == b' = []
2009
2009
| otherwise =
2010
2010
[ locA l' | L l' x <- inners, T. unpack (printOutputable x) == b']
2011
+ #endif
2011
2012
ranges' _ = []
2012
2013
2013
2014
rangesForBinding' :: String -> LIE GhcPs -> [SrcSpan ]
You can’t perform that action at this time.
0 commit comments