From c43dbac08b0d56406fe13de1e9b49c944f478b4a Mon Sep 17 00:00:00 2001 From: romes Date: Wed, 29 Jun 2022 15:36:43 +0200 Subject: Refactor ModuleName to L.H.S.Module.Name ModuleName used to live in GHC.Unit.Module.Name. In this commit, the definition of ModuleName and its associated functions are moved to Language.Haskell.Syntax.Module.Name according to the current plan towards making the AST GHC-independent. The instances for ModuleName for Outputable, Uniquable and Binary were moved to the module in which the class is defined because these instances depend on GHC. The instance of Eq for ModuleName is slightly changed to no longer depend on unique explicitly and instead uses FastString's instance of Eq. --- compiler/GHC/ByteCode/Linker.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/GHC/ByteCode') diff --git a/compiler/GHC/ByteCode/Linker.hs b/compiler/GHC/ByteCode/Linker.hs index c9339317d2..c3af3d4e85 100644 --- a/compiler/GHC/ByteCode/Linker.hs +++ b/compiler/GHC/ByteCode/Linker.hs @@ -31,7 +31,6 @@ import GHC.Builtin.PrimOps import GHC.Builtin.Names import GHC.Unit.Types -import GHC.Unit.Module.Name import GHC.Data.FastString import GHC.Data.SizedSeq @@ -43,6 +42,8 @@ import GHC.Utils.Outputable import GHC.Types.Name import GHC.Types.Name.Env +import Language.Haskell.Syntax.Module.Name + -- Standard libraries import Data.Array.Unboxed import Foreign.Ptr -- cgit v1.2.1