Skip to content

Commit

Permalink
Fix the library's version
Browse files Browse the repository at this point in the history
  • Loading branch information
toku-sa-n committed Apr 13, 2023
1 parent 32b39a6 commit 5f6204a
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 29 deletions.
80 changes: 54 additions & 26 deletions hindent.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.35.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -67,6 +67,8 @@ library
HIndent.Printer
other-modules:
Paths_hindent
autogen-modules:
Paths_hindent
hs-source-dirs:
src
ghc-options: -Wall -O2
Expand All @@ -91,19 +93,25 @@ library
, unicode-show
, utf8-string
, yaml
if impl(ghc >= 9.4.1)
default-language: Haskell2010
if impl(ghc >= 9.6.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
ghc-lib-parser >=9.6.1.20230312 && <9.7
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3
default-language: Haskell2010
if impl(ghc >= 9.4.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3

library hindent-internal
exposed-modules:
HIndent.Internal.Test.Markdone
other-modules:
Paths_hindent
autogen-modules:
Paths_hindent
hs-source-dirs:
internal
ghc-options: -Wall -O2
Expand All @@ -129,13 +137,17 @@ library hindent-internal
, unicode-show
, utf8-string
, yaml
if impl(ghc >= 9.4.1)
default-language: Haskell2010
if impl(ghc >= 9.6.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
ghc-lib-parser >=9.6.1.20230312 && <9.7
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3
default-language: Haskell2010
if impl(ghc >= 9.4.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3

executable hindent
main-is: Main.hs
Expand Down Expand Up @@ -169,19 +181,25 @@ executable hindent
, unicode-show
, utf8-string
, yaml
if impl(ghc >= 9.4.1)
default-language: Haskell2010
if impl(ghc >= 9.6.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
ghc-lib-parser >=9.6.1.20230312 && <9.7
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3
default-language: Haskell2010
if impl(ghc >= 9.4.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3

test-suite hindent-test
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_hindent
autogen-modules:
Paths_hindent
hs-source-dirs:
tests
ghc-options: -Wall -O2
Expand Down Expand Up @@ -210,19 +228,25 @@ test-suite hindent-test
, unicode-show
, utf8-string
, yaml
if impl(ghc >= 9.4.1)
default-language: Haskell2010
if impl(ghc >= 9.6.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
ghc-lib-parser >=9.6.1.20230312 && <9.7
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3
default-language: Haskell2010
if impl(ghc >= 9.4.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3

benchmark hindent-bench
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_hindent
autogen-modules:
Paths_hindent
hs-source-dirs:
benchmarks
ghc-options: -Wall -O2
Expand Down Expand Up @@ -251,10 +275,14 @@ benchmark hindent-bench
, unicode-show
, utf8-string
, yaml
if impl(ghc >= 9.4.1)
default-language: Haskell2010
if impl(ghc >= 9.6.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
ghc-lib-parser >=9.6.1.20230312 && <9.7
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3
default-language: Haskell2010
if impl(ghc >= 9.4.1)
build-depends:
ghc-lib-parser >=9.4.1.20220807 && <9.5
else
build-depends:
ghc-lib-parser >=9.2.3.20220527 && <9.3
11 changes: 8 additions & 3 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,16 @@ dependencies:
- yaml

when:
- condition: impl(ghc >= 9.4.1)
- condition: impl(ghc >= 9.6.1)
then:
dependencies: ghc-lib-parser >= 9.4.1.20220807 && < 9.5
dependencies: ghc-lib-parser >= 9.6.1.20230312 && < 9.7
else:
dependencies: ghc-lib-parser >= 9.2.3.20220527 && < 9.3
when:
- condition: impl(ghc >= 9.4.1)
then:
dependencies: ghc-lib-parser >= 9.4.1.20220807 && < 9.5
else:
dependencies: ghc-lib-parser >= 9.2.3.20220527 && < 9.3

library:
source-dirs: src
Expand Down

0 comments on commit 5f6204a

Please sign in to comment.