Skip to content

Update hie-bios 0.6.1 #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
path = ghcide
# url = https://github.com/digital-asset/ghcide.git
# url = https://github.com/alanz/ghcide.git
url = https://github.com/wz1000/ghcide.git
# url = https://github.com/wz1000/ghcide.git
url = https://github.com/fendor/ghcide.git
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ package ghcide

write-ghc-environment-files: never

index-state: 2020-07-01T21:29:04Z
index-state: 2020-07-13T21:29:04Z
2 changes: 1 addition & 1 deletion exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ setCacheDir logger prefix hscComponents comps dflags = do


renderCradleError :: NormalizedFilePath -> CradleError -> FileDiagnostic
renderCradleError nfp (CradleError _ec t) =
renderCradleError nfp (CradleError _ _ec t) =
ideErrorWithSource (Just "cradle") (Just DsError) nfp (T.unlines (map T.pack t))

-- See Note [Multi Cradle Dependency Info]
Expand Down
2 changes: 1 addition & 1 deletion ghcide
2 changes: 1 addition & 1 deletion haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ library
, gitrev
, hashable
, haskell-lsp == 0.22.*
, hie-bios >= 0.4
, hie-bios ^>= 0.6.1
, hslogger
, lens
, ormolu ^>= 0.1.2
Expand Down
9 changes: 8 additions & 1 deletion src/Ide/Cradle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import Distribution.Helper (Package, projectPackages, pUnits,
unChModuleName, Ex(..), ProjLoc(..),
QueryEnv, mkQueryEnv, runQuery,
Unit, unitInfo, uiComponents,
ChEntrypoint(..), UnitInfo(..))
ChEntrypoint(..), UnitInfo(..),
qePrograms, ghcProgram)
import Distribution.Helper.Discover (findProjects, getDefaultDistDir)
import Ide.Logger
import HIE.Bios as Bios
Expand Down Expand Up @@ -470,6 +471,7 @@ cabalHelperCradle file = do
, componentRoot = cwd
, componentDependencies = []
}
, runGhcCmd = \args -> Bios.readProcessWithCwd cwd "ghc" args ""
}
}
Just (Ex proj) -> do
Expand Down Expand Up @@ -497,6 +499,7 @@ cabalHelperCradle file = do
, cradleOptsProg =
CradleAction { actionName = Bios.Other (projectNoneType proj)
, runCradle = \_ _ -> return CradleNone
, runGhcCmd = \_ -> pure CradleNone
}
}
Just realPackage -> do
Expand All @@ -517,6 +520,9 @@ cabalHelperCradle file = do
realPackage
normalisedPackageLocation
fp
, runGhcCmd = \args -> do
let programs = qePrograms env
Bios.readProcessWithCwd normalisedPackageLocation (ghcProgram programs) args ""
}
}

Expand Down Expand Up @@ -558,6 +564,7 @@ cabalHelperAction proj env package root fp = do
Left err -> return
$ CradleFail
$ CradleError
[]
(ExitFailure 2)
err

Expand Down
1 change: 1 addition & 0 deletions stack-8.10.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ packages:
extra-deps:
- Cabal-3.0.2.0
# - cabal-helper-1.1.0.0
- hie-bios-0.6.1
- github: DanielG/cabal-helper
commit: 79a5608778493bf32e74b54bbf1ea2729941e50f
- cabal-plan-0.7.0.0
Expand Down
6 changes: 3 additions & 3 deletions stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ extra-deps:
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- haskell-src-exts-1.21.1
- hie-bios-0.5.0
- hie-bios-0.6.1
- github: mpickering/hie-bios
commit: b925bbfacf4f42898733d696b62a829258cd9cf9
- hlint-2.2.8
- hoogle-5.0.17.11
- hsimport-0.11.0@rev:2
Expand All @@ -49,8 +51,6 @@ extra-deps:
- regex-tdfa-1.3.1.0
- rope-utf16-splay-0.3.1.0
- shake-0.19.1
# - github: wz1000/shake
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- strict-list-0.1.5
- stylish-haskell-0.11.0.0
- syz-0.2.0.0
Expand Down
2 changes: 1 addition & 1 deletion stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extra-deps:
- haddock-library-1.8.0
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- hie-bios-0.5.0
- hie-bios-0.6.1
- HsYAML-0.2.1.0@rev:1
- HsYAML-aeson-0.2.0.0@rev:1
- indexed-profunctors-0.1
Expand Down
2 changes: 1 addition & 1 deletion stack-8.8.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extra-deps:
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- haskell-src-exts-1.21.1
- hie-bios-0.5.0
- hie-bios-0.6.1
- hlint-2.2.8
- hoogle-5.0.17.11
- hsimport-0.11.0
Expand Down
2 changes: 1 addition & 1 deletion stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extra-deps:
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- haskell-src-exts-1.21.1
- hie-bios-0.5.0
- hie-bios-0.6.1
- hlint-2.2.8
- hoogle-5.0.17.11
- hsimport-0.11.0
Expand Down
4 changes: 1 addition & 3 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extra-deps:
- haddock-library-1.8.0
- haskell-lsp-0.22.0.0
- haskell-lsp-types-0.22.0.0
- hie-bios-0.5.0
- hie-bios-0.6.1
- HsYAML-0.2.1.0@rev:1
- HsYAML-aeson-0.2.0.0@rev:1
- indexed-profunctors-0.1
Expand All @@ -40,8 +40,6 @@ extra-deps:
- regex-pcre-builtin-0.95.1.1.8.43
- regex-tdfa-1.3.1.0
- semialign-1.1
# - github: wz1000/shake
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.11.0.0
- tasty-rerun-1.1.17
- temporary-1.2.1.1
Expand Down