Skip to content

Commit

Permalink
Support building with mtl-2.3.* (GHC 9.6)
Browse files Browse the repository at this point in the history
This makes two changes to `llvm-pretty-bc-parser` to make it build with GHC
9.6:

* Because `mtl-2.3.*` no longer re-exports `Control.Monad` or
  `Control.Monad.Fix`, I needed to tighten up the imports in
  `Data.LLVM.BitCode.Parse` to make it build with GHC 9.6, which bundles
  `mtl-2.3.1`.
* Bump the `llvm-pretty` submodule to bring in the changes from
  GaloisInc/llvm-pretty#112
  • Loading branch information
RyanGlScott committed Jun 26, 2023
1 parent 65be0b0 commit c3f7de3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llvm-pretty
8 changes: 5 additions & 3 deletions src/Data/LLVM/BitCode/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ import Text.LLVM.AST
import Text.LLVM.PP

import Control.Applicative (Alternative(..))
import Control.Monad (MonadPlus(..), unless)
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail)
import qualified Control.Monad.Fail -- makes fail visible for instance
#endif
import Control.Monad.Except
import Control.Monad.Reader
import Control.Monad.State.Strict
import Control.Monad.Fix (MonadFix)
import Control.Monad.Except (MonadError(..), Except, runExcept)
import Control.Monad.Reader (MonadReader(..), ReaderT(..))
import Control.Monad.State.Strict (MonadState(..), StateT(..))
import Data.Maybe (fromMaybe)
import Data.Semigroup
import Data.Typeable (Typeable)
Expand Down

0 comments on commit c3f7de3

Please sign in to comment.