forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cabal check for hie-compat (haskell/ghcide#879)
* Fix cabal check for hie-compat * ghc-lib :((((((
- Loading branch information
Showing
4 changed files
with
28 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
cabal-version: >=1.10 | ||
cabal-version: 1.22 | ||
name: hie-compat | ||
version: 0.1.0.0 | ||
synopsis: HIE files for GHC 8.6 and other HIE file backports | ||
license: Apache-2.0 | ||
description: | ||
Backports for HIE files to GHC 8.6, along with a few other backports | ||
of HIE file related fixes for ghcide | ||
of HIE file related fixes for ghcide. | ||
|
||
THIS DOES NOT LET YOU READ HIE FILES WITH MISMATCHED VERSIONS OF GHC | ||
license-file: LICENSE | ||
author: Zubin Duggal | ||
maintainer: [email protected] | ||
build-type: Simple | ||
extra-source-files: CHANGELOG.md | ||
|
||
extra-source-files: CHANGELOG.md README.md | ||
category: Development | ||
|
||
flag ghc-lib | ||
description: build against ghc-lib instead of the ghc package | ||
|
@@ -22,46 +23,23 @@ flag ghc-lib | |
library | ||
default-language: Haskell2010 | ||
build-depends: | ||
base, array, bytestring, containers, directory, filepath, transformers | ||
|
||
base < 4.15, array, bytestring, containers, directory, filepath, transformers | ||
if flag(ghc-lib) | ||
build-depends: | ||
ghc-lib | ||
hs-source-dirs: src-ghc88 | ||
reexported-modules: | ||
HieTypes as Compat.HieTypes, | ||
HieDebug as Compat.HieDebug, | ||
HieUtils as Compat.HieUtils | ||
exposed-modules: | ||
Compat.HieAst | ||
Compat.HieBin | ||
build-depends: ghc-lib | ||
else | ||
build-depends: | ||
ghc, | ||
ghc-boot | ||
build-depends: ghc, ghc-boot | ||
|
||
exposed-modules: | ||
Compat.HieAst | ||
Compat.HieBin | ||
Compat.HieTypes | ||
Compat.HieDebug | ||
Compat.HieUtils | ||
|
||
if (impl(ghc > 8.5) && impl(ghc < 8.7) && !flag(ghc-lib)) | ||
hs-source-dirs: src-ghc86 | ||
exposed-modules: | ||
Compat.HieAst | ||
Compat.HieBin | ||
Compat.HieTypes | ||
Compat.HieDebug | ||
Compat.HieUtils | ||
if (impl(ghc > 8.7) && impl(ghc < 8.10) && !flag(ghc-lib)) | ||
hs-source-dirs: src-ghc88 | ||
exposed-modules: | ||
Compat.HieAst | ||
Compat.HieBin | ||
if (impl(ghc > 8.9) && impl(ghc < 8.11) && !flag(ghc-lib)) | ||
hs-source-dirs: src-ghc810 | ||
exposed-modules: | ||
Compat.HieAst | ||
Compat.HieBin | ||
|
||
if (impl(ghc > 8.7) && impl(ghc < 8.11) && !flag(ghc-lib)) | ||
reexported-modules: | ||
HieTypes as Compat.HieTypes, | ||
HieDebug as Compat.HieDebug, | ||
HieUtils as Compat.HieUtils | ||
if ((impl(ghc > 8.7) && impl(ghc < 8.10)) || flag(ghc-lib)) | ||
hs-source-dirs: src-ghc88 src-reexport | ||
if (impl(ghc > 8.9) && impl(ghc < 8.11)) | ||
hs-source-dirs: src-ghc810 src-reexport | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Compat.HieDebug | ||
( module HieDebug ) where | ||
import HieDebug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Compat.HieTypes | ||
( module HieTypes ) where | ||
import HieTypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Compat.HieUtils | ||
( module HieUtils ) where | ||
import HieUtils |