File tree 1 file changed +1
-11
lines changed
plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -213,17 +213,7 @@ toCodeAction3 get f = ExceptT . ReaderT $ \caa -> get caa >>= flip runReaderT ca
213
213
214
214
-- | this instance returns a delta AST, useful for exactprint transforms
215
215
instance ToCodeAction r => ToCodeAction (ParsedSource -> r ) where
216
- #if !MIN_VERSION_ghc(9,3,0)
217
- toCodeAction f = ExceptT . ReaderT $ \ caa@ CodeActionArgs {caaAnnSource = x} ->
218
- x >>= \ case
219
- Just s -> flip runReaderT caa . runExceptT . toCodeAction $ f s
220
- _ -> pure $ Right []
221
- #else
222
- toCodeAction f = ExceptT . ReaderT $ \ caa@ CodeActionArgs {caaParsedModule = x} ->
223
- x >>= \ case
224
- Just s -> flip runReaderT caa . runExceptT . toCodeAction . f . pm_parsed_source $ s
225
- _ -> pure $ Right []
226
- #endif
216
+ toCodeAction = toCodeAction2 caaAnnSource
227
217
228
218
instance ToCodeAction r => ToCodeAction (ExportsMap -> r ) where
229
219
toCodeAction = toCodeAction3 caaExportsMap
You can’t perform that action at this time.
0 commit comments