File tree 1 file changed +4
-2
lines changed
plugins/hls-hlint-plugin/src/Ide/Plugin 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ import System.IO.Temp
51
51
#else
52
52
import Development.IDE.GHC.Compat hiding (DynFlags (.. ))
53
53
import Language.Haskell.GHC.ExactPrint.Parsers (postParseTransform )
54
- import Language.Haskell.GHC.ExactPrint.Delta (normalLayout )
54
+ import Language.Haskell.GHC.ExactPrint.Delta (deltaOptions )
55
+ import Language.Haskell.GHC.ExactPrint.Types (Rigidity (.. ))
55
56
#endif
56
57
57
58
import Ide.Logger
@@ -403,8 +404,9 @@ applyHint ide nfp mhint =
403
404
let modu = pm_parsed_source pm
404
405
(modsum, _) <- liftIO $ runAction' $ use_ GetModSummary nfp
405
406
let dflags = ms_hspp_opts modsum
407
+ let rigidLayout = deltaOptions RigidLayout
406
408
(anns', modu') <-
407
- ExceptT $ return $ postParseTransform (Right (anns, [] , dflags, modu)) normalLayout
409
+ ExceptT $ return $ postParseTransform (Right (anns, [] , dflags, modu)) rigidLayout
408
410
liftIO $ (Right <$> applyRefactorings' Nothing commands anns' modu')
409
411
`catches` errorHandlers
410
412
#endif
You can’t perform that action at this time.
0 commit comments