mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-22 05:45:51 +03:00
dump: Fix compilation with GHC 9.4
This commit is contained in:
parent
e081826c9a
commit
73adafd3ae
@ -3,6 +3,15 @@
|
||||
|
||||
module Main (main) where
|
||||
|
||||
-- Sometimes, GHC 9.4 is unable to find instances of RegAddrWidth that are
|
||||
-- available by way of transitive module imports. The only reliable way of
|
||||
-- preventing this issue that I've found is to import the defining module for
|
||||
-- the instances (Data.Macaw.ARM.ARMReg) directly. See
|
||||
-- https://gitlab.haskell.org/ghc/ghc/-/issues/16234 for the upstream GHC issue.
|
||||
--
|
||||
-- This issue does not affect GHC 9.6 or later, so when we drop support for GHC
|
||||
-- 9.4, we can remove the redundant import below.
|
||||
import Data.Macaw.ARM.ARMReg ()
|
||||
import Data.Macaw.AArch32.Symbolic ()
|
||||
import Data.Macaw.ARM qualified as MA
|
||||
import Data.Macaw.Dump qualified as MD
|
||||
|
Loading…
Reference in New Issue
Block a user