File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
plugins/hls-fourmolu-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,9 @@ provider recorder plId ideState typ contents fp fo = ExceptT $ withIndefinitePro
72
72
<$> liftIO (runAction " Fourmolu" ideState $ use GhcSession fp)
73
73
useCLI <- liftIO $ runAction " Fourmolu" ideState $ usePropertyAction # external plId properties
74
74
if useCLI
75
- then mapExceptT liftIO $ ExceptT
76
- $ handle @ IOException
77
- (pure . Left . PluginInternalError . T. pack . show )
78
- $ runExceptT $ cliHandler fileOpts
75
+ then ExceptT . liftIO $
76
+ handle @ IOException (pure . Left . PluginInternalError . T. pack . show ) $
77
+ runExceptT (cliHandler fileOpts)
79
78
else do
80
79
logWith recorder Debug $ LogCompiledInVersion VERSION_fourmolu
81
80
FourmoluConfig {.. } <-
@@ -104,7 +103,7 @@ provider recorder plId ideState typ contents fp fo = ExceptT $ withIndefinitePro
104
103
, cfgDebug = False
105
104
, cfgPrinterOpts = resolvePrinterOpts [lspPrinterOpts, cfgFilePrinterOpts]
106
105
}
107
- mapExceptT liftIO $ ExceptT $
106
+ ExceptT . liftIO $
108
107
bimap (PluginInternalError . T. pack . show ) (InL . makeDiffTextEdit contents)
109
108
<$> try @ OrmoluException (ormolu config fp' contents)
110
109
where
You can’t perform that action at this time.
0 commit comments