[Git][ghc/ghc][wip/andreask/ppr_prelude] Remove Name.Type module
Andreas Klebinger (@AndreasK)
gitlab at gitlab.haskell.org
Wed Nov 2 14:52:26 UTC 2022
Andreas Klebinger pushed to branch wip/andreask/ppr_prelude at Glasgow Haskell Compiler / GHC
Commits:
52925e67 by Andreas Klebinger at 2022-11-02T15:50:06+01:00
Remove Name.Type module
- - - - -
3 changed files:
- compiler/Language/Haskell/Syntax/Module/Name.hs
- − compiler/Language/Haskell/Syntax/Module/Name/Type.hs
- compiler/ghc.cabal.in
Changes:
=====================================
compiler/Language/Haskell/Syntax/Module/Name.hs
=====================================
@@ -9,9 +9,6 @@ module Language.Haskell.Syntax.Module.Name
import Prelude
--- See Note [Exporting pprTrace from GHC.Prelude]
-import Language.Haskell.Syntax.Module.Name.Type as Language.Haskell.Syntax.Module.Name
-
import Data.Data
import Data.Char (isAlphaNum)
import Control.DeepSeq
@@ -21,6 +18,9 @@ import System.FilePath
import GHC.Utils.Misc (abstractConstr)
import GHC.Data.FastString
+-- | A ModuleName is essentially a simple string, e.g. @Data.List at .
+newtype ModuleName = ModuleName FastString deriving (Eq)
+
deriving instance Show ModuleName
instance Ord ModuleName where
=====================================
compiler/Language/Haskell/Syntax/Module/Name/Type.hs deleted
=====================================
@@ -1,8 +0,0 @@
-module Language.Haskell.Syntax.Module.Name.Type where
-
-import Prelude
-
-import GHC.Data.FastString ( FastString )
-
--- | A ModuleName is essentially a simple string, e.g. @Data.List at .
-newtype ModuleName = ModuleName FastString deriving (Eq)
\ No newline at end of file
=====================================
compiler/ghc.cabal.in
=====================================
@@ -819,7 +819,6 @@ Library
Language.Haskell.Syntax.ImpExp
Language.Haskell.Syntax.Lit
Language.Haskell.Syntax.Module.Name
- Language.Haskell.Syntax.Module.Name.Type
Language.Haskell.Syntax.Pat
Language.Haskell.Syntax.Type
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/52925e6797853c1d84ed84476a7118d02a80be6f
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/52925e6797853c1d84ed84476a7118d02a80be6f
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221102/20cde2cd/attachment-0001.html>
More information about the ghc-commits
mailing list