mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-11 08:45:35 +03:00
Fix cabal check for hie-compat (haskell/ghcide#879)
* Fix cabal check for hie-compat * ghc-lib :((((((
This commit is contained in:
parent
243f51b8e4
commit
db562e4ff2
@ -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: zubin.duggal@gmail.com
|
||||
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
|
||||
|
||||
|
3
hie-compat/src-reexport/Compat/HieDebug.hs
Normal file
3
hie-compat/src-reexport/Compat/HieDebug.hs
Normal file
@ -0,0 +1,3 @@
|
||||
module Compat.HieDebug
|
||||
( module HieDebug ) where
|
||||
import HieDebug
|
3
hie-compat/src-reexport/Compat/HieTypes.hs
Normal file
3
hie-compat/src-reexport/Compat/HieTypes.hs
Normal file
@ -0,0 +1,3 @@
|
||||
module Compat.HieTypes
|
||||
( module HieTypes ) where
|
||||
import HieTypes
|
3
hie-compat/src-reexport/Compat/HieUtils.hs
Normal file
3
hie-compat/src-reexport/Compat/HieUtils.hs
Normal file
@ -0,0 +1,3 @@
|
||||
module Compat.HieUtils
|
||||
( module HieUtils ) where
|
||||
import HieUtils
|
Loading…
Reference in New Issue
Block a user