File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ import HIE.Bios.Environment (addCmdOpts, makeDynFlagsAbsolut
62
62
import HIE.Bios.Types
63
63
import HscTypes (HscEnv (.. ), ic_dflags )
64
64
import qualified Language.Haskell.LSP.Core as LSP
65
+ import Ide.Cradle
65
66
import Ide.Logger
66
67
import Ide.Plugin
67
68
import Ide.Plugin.Config
@@ -98,6 +99,7 @@ import Ide.Plugin.Ormolu as Ormolu
98
99
import Ide.Plugin.Brittany as Brittany
99
100
#endif
100
101
import Ide.Plugin.Pragmas as Pragmas
102
+ import Data.Void (vacuous )
101
103
102
104
103
105
-- ---------------------------------------------------------------------
@@ -443,7 +445,7 @@ loadSession dir = do
443
445
-- throwing an async exception
444
446
void $ forkIO $ do
445
447
putStrLn $ " Consulting the cradle for " <> show file
446
- cradle <- maybe (loadImplicitCradle $ addTrailingPathSeparator dir) loadCradle hieYaml
448
+ cradle <- maybe (cabalHelperCradle cfp) ( fmap vacuous . loadCradle) hieYaml
447
449
eopts <- cradleToSessionOpts cradle cfp
448
450
print eopts
449
451
case eopts of
You can’t perform that action at this time.
0 commit comments