Skip to content

Commit 470e5d3

Browse files
authored
Merge pull request #64 from jneira/patched-hie-bios
Use patched version of hie-bios to load ghcide modules
2 parents f412703 + f0e2ec3 commit 470e5d3

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

cabal.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ source-repository-package
77
location: https://github.com/DanielG/cabal-helper.git
88
tag: a18bbb2af92e9b4337e7f930cb80754f2408bcfd
99

10+
source-repository-package
11+
type: git
12+
location: https://github.com/fendor/hie-bios.git
13+
tag: d5b7fc9bb3025b1d4d2ac9c48b588faf18dfce99
14+
15+
1016
tests: true
1117
documentation: false
1218
-- documentation: true

exe/Main.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ import DynFlags (gopt_set, gopt_unset,
5353
updOptLevel)
5454
import DynFlags (PackageFlag(..), PackageArg(..))
5555
import GHC hiding (def)
56-
import GHC.Check (runTimeVersion, compileTimeVersionFromLibdir)
56+
import GHC.Check (runTimeVersion, compileTimeVersionFromLibdir)
5757
-- import GhcMonad
58-
import HIE.Bios.Cradle
58+
import HIE.Bios.Cradle
5959
import HIE.Bios.Environment (addCmdOpts)
60-
import HIE.Bios.Types
60+
import HIE.Bios.Types
6161
import HscTypes (HscEnv(..), ic_dflags)
6262
import qualified Language.Haskell.LSP.Core as LSP
6363
import Ide.Logger
@@ -497,9 +497,9 @@ memoIO op = do
497497
Just res -> return (mp, res)
498498

499499
setOptions :: GhcMonad m => ComponentOptions -> DynFlags -> m (DynFlags, [Target])
500-
setOptions (ComponentOptions theOpts _) dflags = do
500+
setOptions (ComponentOptions theOpts compRoot _) dflags = do
501501
cacheDir <- liftIO $ getCacheDir theOpts
502-
(dflags', targets) <- addCmdOpts theOpts dflags
502+
(dflags', targets) <- addCmdOpts compRoot theOpts dflags
503503
let dflags'' =
504504
-- disabled, generated directly by ghcide instead
505505
flip gopt_unset Opt_WriteInterface $

0 commit comments

Comments
 (0)