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 13, 2020
1 parent 6ef5798 commit 0aa97dd
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 @@ -61,6 +61,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 @@ -97,6 +98,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 @@ -437,7 +439,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
opts <- cradleToSessionOpts cradle cfp
print opts
(cs, res)<- session (hieYaml, toNormalizedFilePath' cfp, opts)
Expand Down

0 comments on commit 0aa97dd

Please sign in to comment.