File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/hls-fourmolu-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import Control.Exception (IOException, try)
16
16
import Control.Lens ((^.) )
17
17
import Control.Monad
18
18
import Control.Monad.IO.Class
19
- import Data.Bifunctor (first )
19
+ import Data.Bifunctor (bimap , first )
20
20
import Data.Maybe
21
21
import Data.Text (Text )
22
22
import qualified Data.Text as T
@@ -100,8 +100,8 @@ provider recorder plId ideState typ contents fp fo = withIndefiniteProgress titl
100
100
pure . Left . responseError $ " Fourmolu failed with exit code " <> T. pack (show n)
101
101
else do
102
102
let format fourmoluConfig =
103
- first (mkError . show )
104
- <$> try @ OrmoluException (makeDiffTextEdit contents <$> ormolu config fp' (T. unpack contents))
103
+ bimap (mkError . show ) (makeDiffTextEdit contents )
104
+ <$> try @ OrmoluException (ormolu config fp' (T. unpack contents))
105
105
where
106
106
printerOpts =
107
107
#if MIN_VERSION_fourmolu(0,7,0)
You can’t perform that action at this time.
0 commit comments