diff --git a/macaw-aarch32-symbolic/tools/Dump.hs b/macaw-aarch32-symbolic/tools/Dump.hs index a11a6ca5..09b0bf03 100644 --- a/macaw-aarch32-symbolic/tools/Dump.hs +++ b/macaw-aarch32-symbolic/tools/Dump.hs @@ -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