Skip to content

Commit

Permalink
Make cabal check happy, so CI can hopefully pass
Browse files Browse the repository at this point in the history
  • Loading branch information
alanz committed May 16, 2024
1 parent 51fb0ce commit db76a86
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 46 deletions.
6 changes: 4 additions & 2 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ rm -fr dist*
# cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.11.20240505/bin/ghc --allow-newer

# cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.0.20240508/bin/ghc --allow-newer
cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.0.20240509/bin/ghc --allow-newer
# cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.0.20240509/bin/ghc --allow-newer

#--------------------------------------------------------------------
#- GHC 9.10.1
Expand All @@ -239,6 +239,8 @@ cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.0
# cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.1/bin/ghc --allow-newer

# Check final state
cabal configure -fdev --enable-tests --with-compiler=ghc-9.10.1
# cabal configure -fdev --enable-tests --with-compiler=ghc-9.10.1
# cabal configure -fdev --enable-tests --with-compiler=ghc-9.101 --allow-newer
# cabal configure -fdev -froundtrip --enable-tests --with-compiler=ghc-9.10.1
cabal configure -froundtrip --enable-tests --with-compiler=ghc-9.10.1

84 changes: 40 additions & 44 deletions ghc-exactprint.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ library

hs-source-dirs: src
build-depends: base >=4.20 && <4.21
, bytestring >= 0.10.6
, containers >= 0.5
, data-default
, ghc >= 9.10
, mtl >= 2.2.1
, syb >= 0.5
, ghc-boot
, os-string >= 2.0.2
, containers >= 0.5 && < 0.8
, ghc >= 9.10 && < 9.11
, ghc-boot >= 9.10 && < 9.11
, mtl >= 2.2.1 && < 2.5
, syb >= 0.5 && < 0.8

default-language: Haskell2010
if impl (ghc < 9.10)
Expand Down Expand Up @@ -115,18 +112,17 @@ executable roundtrip
default-language: Haskell2010
if impl (ghc >= 9.10) && flag (roundtrip)
build-depends:
HUnit
, base
, containers
, directory
, extra
, filepath
, ghc
HUnit < 1.7
, base < 4.21
, containers < 0.8
, directory < 1.4
, extra < 1.8
, filepath < 1.6
, ghc >= 9.10 && < 9.11
, ghc-exactprint
, ghc-paths
, time
, ghc-paths < 0.2
, time < 1.13
, ghc-boot
, os-string
buildable: True
else
buildable: False
Expand All @@ -139,34 +135,34 @@ executable static
other-modules: Test.CommonUtils
default-language: Haskell2010
if flag (roundtrip)
build-depends: base
, directory
, extra
, filepath
, ghc
, Diff
build-depends: base < 4.21
, directory < 1.4
, extra < 1.8
, filepath < 1.6
, ghc >= 9.10 && < 9.11
, Diff < 0.6
buildable: True
else
buildable: False
GHC-Options: -threaded

executable prepare-hackage
import: warnings
main-is: PrepareHackage.hs
other-modules: Test.CommonUtils
hs-source-dirs: tests
default-language: Haskell2010
if flag (roundtrip)
build-depends: base
, containers
, directory
, extra
, filepath
, ghc >= 9.10
, HUnit
, text >= 1.2.2
, turtle >= 1.3.0
buildable: True
else
buildable: False
GHC-Options: -threaded
-- executable prepare-hackage
-- import: warnings
-- main-is: PrepareHackage.hs
-- other-modules: Test.CommonUtils
-- hs-source-dirs: tests
-- default-language: Haskell2010
-- if flag (roundtrip)
-- build-depends: base < 4.21
-- , containers
-- , directory
-- , extra
-- , filepath
-- , ghc >= 9.10
-- , HUnit
-- , text >= 1.2.2
-- , turtle >= 1.3.0
-- buildable: True
-- else
-- buildable: False
-- GHC-Options: -threaded

0 comments on commit db76a86

Please sign in to comment.