Skip to content

Commit afd8229

Browse files
author
Jaro Reinders
committed
Please stylish-haskell
1 parent 3988271 commit afd8229

File tree

1 file changed

+9
-8
lines changed
  • ghcide/src/Development/IDE/GHC/Compat

1 file changed

+9
-8
lines changed

ghcide/src/Development/IDE/GHC/Compat/Driver.hs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import GHC.Driver.Main
2222
import GHC.Driver.Session
2323
import GHC.Hs
2424
import GHC.Hs.Dump
25-
import GHC.Iface.Ext.Ast (mkHieFile)
26-
import GHC.Iface.Ext.Binary (hie_file_result, readHieFile,
27-
writeHieFile)
28-
import GHC.Iface.Ext.Debug (diffFile, validateScopes)
29-
import GHC.Iface.Ext.Types (getAsts, hie_asts, hie_module)
25+
import GHC.Iface.Ext.Ast (mkHieFile)
26+
import GHC.Iface.Ext.Binary (hie_file_result, readHieFile,
27+
writeHieFile)
28+
import GHC.Iface.Ext.Debug (diffFile, validateScopes)
29+
import GHC.Iface.Ext.Types (getAsts, hie_asts, hie_module)
3030
import GHC.Tc.Module
3131
import GHC.Tc.Utils.Monad
3232
import GHC.Types.SourceFile
@@ -72,10 +72,11 @@ hsc_typecheck keep_rn mod_summary mb_rdr_module = do
7272
Nothing -> hscParse' mod_summary
7373
tc_result0 <- tcRnModule' mod_summary keep_rn' hpm
7474
if hsc_src == HsigFile
75+
then
7576
#if MIN_VERSION_ghc(9,5,0)
76-
then do (iface, _) <- liftIO $ hscSimpleIface hsc_env Nothing tc_result0 mod_summary
77+
do (iface, _) <- liftIO $ hscSimpleIface hsc_env Nothing tc_result0 mod_summary
7778
#else
78-
then do (iface, _) <- liftIO $ hscSimpleIface hsc_env tc_result0 mod_summary
79+
do (iface, _) <- liftIO $ hscSimpleIface hsc_env tc_result0 mod_summary
7980
#endif
8081
ioMsgMaybe $ hoistTcRnMessage $
8182
tcRnMergeSignatures hsc_env hpm tc_result0 iface
@@ -143,4 +144,4 @@ hscSimpleIface :: HscEnv
143144
-> IO (ModIface, ModDetails)
144145
hscSimpleIface hsc_env tc_result summary
145146
= runHsc hsc_env $ hscSimpleIface' tc_result summary
146-
#endif
147+
#endif

0 commit comments

Comments
 (0)