diff options
author | romes <rodrigo.m.mesquita@gmail.com> | 2022-06-29 15:36:43 +0200 |
---|---|---|
committer | romes <rodrigo.m.mesquita@gmail.com> | 2022-07-03 15:06:26 +0200 |
commit | bae4d04456dc13f42eee2feae9d541836728ebbd (patch) | |
tree | 4a158e53deab52d58334230802990b30246e12c2 /compiler/Language/Haskell/Syntax/ImpExp.hs-boot | |
parent | c33787c7cada83c1284f1b3a4194ab8d03479f00 (diff) | |
download | haskell-wip/romes/ttg-module.tar.gz |
Refactor ModuleName to L.H.S.Module.Namewip/romes/ttg-module
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.
Diffstat (limited to 'compiler/Language/Haskell/Syntax/ImpExp.hs-boot')
-rw-r--r-- | compiler/Language/Haskell/Syntax/ImpExp.hs-boot | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/Language/Haskell/Syntax/ImpExp.hs-boot b/compiler/Language/Haskell/Syntax/ImpExp.hs-boot index 9cc78600b8..68bd7fdc53 100644 --- a/compiler/Language/Haskell/Syntax/ImpExp.hs-boot +++ b/compiler/Language/Haskell/Syntax/ImpExp.hs-boot @@ -1,7 +1,5 @@ module Language.Haskell.Syntax.ImpExp where -import GHC.Data.FastString - import Data.Eq import Data.Ord import Text.Show @@ -16,7 +14,3 @@ instance Eq IsBootInterface instance Ord IsBootInterface instance Show IsBootInterface instance Data IsBootInterface - -newtype ModuleName = ModuleName FastString - -instance Show ModuleName |