Skip to content

Commit 72d135a

Browse files
committed
Fix build error in hls-refactor-plugin
1 parent 5ab7378 commit 72d135a

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ instance ToCodeAction r => ToCodeAction (ParsedSource -> r) where
228228
Just s -> flip runReaderT caa . runExceptT . toCodeAction . f . astA $ s
229229
_ -> pure $ Right []
230230
#else
231-
toCodeAction f = ReaderT $ \caa@CodeActionArgs {caaParsedModule = x} ->
231+
toCodeAction f = ExceptT . ReaderT $ \caa@CodeActionArgs {caaParsedModule = x} ->
232232
x >>= \case
233-
Just s -> flip runReaderT caa . toCodeAction . f . pm_parsed_source $ s
234-
_ -> pure []
233+
Just s -> flip runReaderT caa . runExceptT . toCodeAction . f . pm_parsed_source $ s
234+
_ -> pure $ Right []
235235
#endif
236236

237237
instance ToCodeAction r => ToCodeAction (ExportsMap -> r) where

0 commit comments

Comments
 (0)