Skip to content

Commit

Permalink
Massaging upper bounds
Browse files Browse the repository at this point in the history
This allows the library to build (and be depended on) without "breaking open"
the build with heavy-hammers like `--allow-newer` when compiling with
GHC 8.6. The test suite still does not build, due to some naughty
partial pattern matches.
  • Loading branch information
fosskers committed May 20, 2019
1 parent 79dc5f2 commit 9f07b62
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
18 changes: 9 additions & 9 deletions pact.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -138,27 +138,27 @@ library

build-depends: Decimal >= 0.4.2 && < 0.6
, aeson >= 0.11.3.0 && < 1.5
, algebraic-graphs >= 0.2 && < 0.3
, algebraic-graphs >= 0.2 && < 0.4
, prettyprinter >= 1.2 && < 1.3
, prettyprinter-ansi-terminal >= 1.1 && < 1.2
, prettyprinter-convert-ansi-wl-pprint
, attoparsec >= 0.13.0.2 && < 0.14
, base >=4.9.0.0 && < 4.12
, base >=4.9.0.0 && < 4.13
, base16-bytestring >=0.1.1.6 && < 0.2
, base64-bytestring >= 1.0.0.1
, bound >= 2 && < 2.1
, bytestring >=0.10.8.1 && < 0.11
, cereal >=0.5.4.0 && < 0.6
, containers >= 0.5.7 && < 0.6
, containers >= 0.5.7 && < 0.7
, data-default >= 0.7.1.1 && < 0.8
, deepseq >= 1.4.2.0 && < 1.5
, deriving-compat >= 0.5.1
, directory >= 1.2.6.2 && < 1.4
, exceptions >= 0.8.3 && < 0.11
, filepath >= 1.4.1.0 && < 1.5
, hashable >= 1.2.4.0 && < 1.3
, hspec >= 2.2.4 && < 2.6
, lens >= 4.14 && < 4.17
, hspec >= 2.2.4 && < 2.8
, lens >= 4.14 && < 4.18
, lens-aeson >= 1.0.0.5 && < 1.1
, megaparsec >= 6
, mtl >= 2.2.1 && < 2.3
Expand All @@ -169,7 +169,7 @@ library
, safe >= 0.3.11 && < 0.4
, scientific >= 0.3.4.9 && < 0.4
, semigroups >= 0.18.2 && < 0.19
, stm >= 2.4.4.1 && < 2.5
, stm >= 2.4.4.1 && < 2.6
, text >= 1.2.2.1 && < 1.3
-- kadena ghcjs compat fork
, thyme == 0.3.6.0
Expand All @@ -179,7 +179,7 @@ library
, utf8-string >= 1.0.1.1 && < 1.1
, vector >= 0.11.0.0 && < 0.13
, vector-algorithms >= 0.7
, vector-space >= 0.10.4 && < 0.14
, vector-space >= 0.10.4 && < 0.16
, mmorph >= 1.1 && < 1.2
, constraints
, servant
Expand All @@ -194,7 +194,7 @@ library
if !impl(ghcjs)
build-depends:
async
, criterion >= 1.1.4 && < 1.5
, criterion >= 1.1.4 && < 1.6
, cryptonite
, direct-sqlite
, fast-logger
Expand All @@ -203,7 +203,7 @@ library
, safe-exceptions >= 0.1.5.0 && < 0.2
, sbv >= 7.11
, servant-server
, statistics >= 0.13.3 && < 0.15
, statistics >= 0.13.3 && < 0.16
, wai-cors
, warp
, yaml
Expand Down
27 changes: 18 additions & 9 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
# stack yaml for ghc builds

resolver: lts-12.9
resolver: lts-13.19

packages:
- '.'

# GHC 8.6 has a more aggressive Pattern Match exhaustion checker. A number of
# Pact's `Analysis` modules cause seeming infinite loops in the compiler during
# this analysis, so here we limit the depth to 5000, then override `-Werror`
# with `-Wwarn` to avoid failing the build.
ghc-options:
pact: -fmax-pmcheck-iterations=5000 -Wwarn

extra-deps:
- aeson-1.4.2.0
- algebraic-graphs-0.2
- crackNum-2.3
- FloatingHex-0.4
- compactable-0.1.2.2
- ed25519-donna-0.1.1
- hw-hspec-hedgehog-0.1.0.5
# Missing from Stackage
- ed25519-donna-0.1.1@sha256:344c0bb83603ed896012f441e54b380314dc4910320577cd18a9071e34f24fe9,2358
- prettyprinter-convert-ansi-wl-pprint-1.1@sha256:ae908ee44422c38a696858f04928d4b2448df656c09e6b5f5b1be05d99669fb0,3022

# Can't yet upgrade to more recent versions
- megaparsec-6.5.0
- neat-interpolation-0.3.2.2 # Due to megaparsec 7
- sbv-8.1

# Custom Pins
- git: https://github.com/kadena-io/thyme.git
commit: 6ee9fcb026ebdb49b810802a981d166680d867c9
- sbv-8.1

0 comments on commit 9f07b62

Please sign in to comment.