Commit Graph

9 Commits

Author SHA1 Message Date
Ryan Scott
a1adde9685 Support building with GHC 9.0
This contains a variety of tweaks needed to make `what4`, `what4-abc`, and
`what4-blt` build warning-free on GHC 9.0:

* GHC's constraint solver now solves constraints in each top-level group
  sooner (see
  [here](https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0?version_id=5fcd0a50e0872efb3c38a32db140506da8310d87#the-order-of-th-splices-is-more-important)).
  This affects `what4`'s `What4.Expr.App` module, as it separates top-level
  groups with a Template Haskell `$(return [])` splice. The previous location
  of this splice made it so that the TH-generated instances in that module
  (e.g., the `TraversableFC` instance for `App`) were not available to any code
  before the splice, resulting in type errors when compiled with GHC 9.0.

  I implemented a fairly involved fix of moving each of the affected data
  types, as well as their corresponding TH-generated instances, to the top of
  the module to ensure that subsequent top-level groups have access to this
  code.
* GHC 9.0 implements simplified subsumption (see
  [here](https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0?version_id=5fcd0a50e0872efb3c38a32db140506da8310d87#simplified-subsumption)).
  This affects the use of the `freshBoundTermFn` function in `what4`'s
  `What4.Protocol.SMTWriter` module, as `freshBoundTermFn`'s type signature
  contains a nested `forall`. Fortunately, repairing this code is as simple as
  a single eta expansion.
* Raise the upper version bounds on `base` in `what4-abc` and `what4-blt` to
  permit building with `base-4.15` (bundled with GHC 9.0).
* Bump the `aig` submodule commit so that it does not emit `-Wstar-is-type`
  warnings when built with GHC 9.0, where `-Wall` implies `-Wstar-is-type`.
  Bump the `language-sally` submodule commit to allow building with
  `base-4.15` (see GaloisInc/language-sally#6).
2021-05-18 09:11:19 -04:00
Kevin Quick
287549faff
[what4-blt] Update cabal specification to version 2.2. 2021-03-14 10:21:29 -07:00
Brian Huffman
0a1ec94056 Switch from ansi-wl-pprint to the prettyprinter package.
This patch converts packages `what4`, `what4-abc`, and `what4-blt`.
2020-11-23 06:39:59 -08:00
Rob Dockins
2fe09d5fd9 Various metadata updates.
* Update/imporove Haddock comments and bump copyright years

* Bump copyright dates in LICENSE files

* Add .cabal package lower bounds. These appear to be reasonable, but
I haven't exhaustively tested the various configurations.

* Bump copyright dates in .cabal files

* Start a basic changelog
2020-07-21 17:43:47 -07:00
Rob Dockins
0a44276206 Relax base bounds for what4-abc and what4-blt 2020-05-07 13:09:38 -07:00
Rob Dockins
e9b5430a94 Update various .cabal files to upgrade certain warnings
to errors. These are: incomplete-patterns, overlapping-patterns, and
missing-methods.
2020-04-02 10:27:02 -07:00
Rob Dockins
2fb6f0c483 Fixes for GHC 8.8 builds. Mostly MonadFail related changes,
but a few other odds and ends as well.
2020-01-22 09:35:15 -08:00
Kevin Quick
d51a6f96f7 Bump upper limits on base to allow GHC 8.6 compilation. 2018-11-06 13:18:54 -08:00
Rob Dockins
75b690da99 Rename the crucible-blt package into what4-blt 2018-05-10 18:14:53 -07:00