Skip to content

Commit

Permalink
dump: Fix compilation with GHC 9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Oct 16, 2024
1 parent e081826 commit 73adafd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions macaw-aarch32-symbolic/tools/Dump.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73adafd

Please sign in to comment.