Skip to content

Commit

Permalink
Use cabal-helper cradle instead implicit one
Browse files Browse the repository at this point in the history
  • Loading branch information
jneira committed May 14, 2020
1 parent 0a2be76 commit 6ad9de2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import HIE.Bios.Environment (addCmdOpts, makeDynFlagsAbsolut
import HIE.Bios.Types
import HscTypes (HscEnv(..), ic_dflags)
import qualified Language.Haskell.LSP.Core as LSP
import Ide.Cradle
import Ide.Logger
import Ide.Plugin
import Ide.Plugin.Config
Expand Down Expand Up @@ -98,6 +99,7 @@ import Ide.Plugin.Ormolu as Ormolu
import Ide.Plugin.Brittany as Brittany
#endif
import Ide.Plugin.Pragmas as Pragmas
import Data.Void (vacuous)


-- ---------------------------------------------------------------------
Expand Down Expand Up @@ -443,7 +445,7 @@ loadSession dir = do
-- throwing an async exception
void $ forkIO $ do
putStrLn $ "Consulting the cradle for " <> show file
cradle <- maybe (loadImplicitCradle $ addTrailingPathSeparator dir) loadCradle hieYaml
cradle <- maybe (cabalHelperCradle cfp) (fmap vacuous . loadCradle) hieYaml
eopts <- cradleToSessionOpts cradle cfp
print eopts
case eopts of
Expand Down

0 comments on commit 6ad9de2

Please sign in to comment.