Skip to content

Commit

Permalink
Support building with GHC 9.4
Browse files Browse the repository at this point in the history
This makes a variety of small tweaks needed to make `asl-translator` build with
GHC 9.4:

* GHC 9.4 is pickier about undecidable superclass checking. As such, I needed
  to explicitly enable `UndecidableSuperClasses` in `Language.ASL.Globals`.
* The upper version bounds on `text` were raised to allow building with
  `text-2.0.*`, which is shipped with GHC 9.4.*.
* The following submodules were bumped to bring in changes needed to make them
  build with GHC 9.4:
  * `crucible`: GaloisInc/crucible#1073
  * `dismantle`: GaloisInc/dismantle#40
  • Loading branch information
RyanGlScott committed Apr 4, 2023
1 parent 83e498b commit f06629a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions asl-translator.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ common shared-properties
ilist,
integer-logarithms,
bimap,
text >= 1 && < 2,
text >= 1 && < 2.1,
mtl,
transformers,
lens,
Expand Down Expand Up @@ -106,7 +106,7 @@ executable asl-translator-exec
what4,
asl-translator,
split,
text >= 1 && < 2
text >= 1 && < 2.1
hs-source-dirs: exe
ghc-options: -Wcompat -Wall -O2 -threaded -rtsopts "-with-rtsopts=-N"
default-language: Haskell2010
Expand Down
1 change: 1 addition & 0 deletions lib/Language/ASL/Globals.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UndecidableSuperClasses #-}

{-# OPTIONS_GHC -ddump-splices -ddump-to-file -dth-dec-file #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
Expand Down
2 changes: 1 addition & 1 deletion submodules/crucible
Submodule crucible updated 330 files
2 changes: 1 addition & 1 deletion submodules/dismantle

0 comments on commit f06629a

Please sign in to comment.