diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-08-23 17:20:48 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-08-25 20:06:46 -0400 |
commit | 6b47aa1cc87426db4fe7d805af69894de05780ff (patch) | |
tree | c84155b5594045acee5f0d78abcdbd3f3ff72bbd /compiler | |
parent | 8603c92113c49557f8632675a01f3b3874b819d1 (diff) | |
download | haskell-6b47aa1cc87426db4fe7d805af69894de05780ff.tar.gz |
Fix redundant import
This fixes a build error on x86_64-linux-alpine3_12-validate.
See the function 'loadExternalPlugins' defined in this file.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Driver/Plugins.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Plugins.hs b/compiler/GHC/Driver/Plugins.hs index d260c9c206..cbe8ac9023 100644 --- a/compiler/GHC/Driver/Plugins.hs +++ b/compiler/GHC/Driver/Plugins.hs @@ -1,7 +1,7 @@ {-# LANGUAGE RankNTypes #-} {-# LANGUAGE CPP #-} -#if defined(HAVE_INTERNAL_INTERPRETER) +#if defined(HAVE_INTERNAL_INTERPRETER) && defined(CAN_LOAD_DLL) {-# LANGUAGE MagicHash #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE UnboxedTuples #-} @@ -103,7 +103,7 @@ import qualified Data.Semigroup import Control.Monad -#if defined(HAVE_INTERNAL_INTERPRETER) +#if defined(HAVE_INTERNAL_INTERPRETER) && defined(CAN_LOAD_DLL) import GHCi.ObjLink import GHC.Exts (addrToAny#, Ptr(..)) import GHC.Utils.Encoding |