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 @@ -61,6 +61,7 @@ import HIE.Bios.Environment (addCmdOpts, makeDynFlagsAbsolut
61
61
import HIE.Bios.Types
62
62
import HscTypes (HscEnv (.. ), ic_dflags )
63
63
import qualified Language.Haskell.LSP.Core as LSP
64
+ import Ide.Cradle
64
65
import Ide.Logger
65
66
import Ide.Plugin
66
67
import Ide.Plugin.Config
@@ -97,6 +98,7 @@ import Ide.Plugin.Ormolu as Ormolu
97
98
import Ide.Plugin.Brittany as Brittany
98
99
#endif
99
100
import Ide.Plugin.Pragmas as Pragmas
101
+ import Data.Void (vacuous )
100
102
101
103
102
104
-- ---------------------------------------------------------------------
@@ -437,7 +439,7 @@ loadSession dir = do
437
439
-- throwing an async exception
438
440
void $ forkIO $ do
439
441
putStrLn $ " Consulting the cradle for " <> show file
440
- cradle <- maybe (loadImplicitCradle $ addTrailingPathSeparator dir) loadCradle hieYaml
442
+ cradle <- maybe (cabalHelperCradle cfp) ( fmap vacuous . loadCradle) hieYaml
441
443
opts <- cradleToSessionOpts cradle cfp
442
444
print opts
443
445
(cs, res)<- session (hieYaml, toNormalizedFilePath' cfp, opts)
You can’t perform that action at this time.
0 commit comments