[Git][ghc/ghc][master] Make ghc-boot reexport modules from ghc-boot-th

Marge Bot gitlab at gitlab.haskell.org
Wed Sep 16 08:55:24 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
8af954d2 by Sylvain Henry at 2020-09-16T04:55:17-04:00
Make ghc-boot reexport modules from ghc-boot-th

Packages don't have to import both ghc-boot and ghc-boot-th. It makes
the dependency graph easier to understand and to refactor.

- - - - -


3 changed files:

- compiler/ghc.cabal.in
- libraries/ghc-boot/ghc-boot.cabal.in
- libraries/ghci/ghci.cabal.in


Changes:

=====================================
compiler/ghc.cabal.in
=====================================
@@ -72,7 +72,6 @@ Library
                    transformers == 0.5.*,
                    exceptions == 0.10.*,
                    ghc-boot   == @ProjectVersionMunged@,
-                   ghc-boot-th == @ProjectVersionMunged@,
                    ghc-heap   == @ProjectVersionMunged@,
                    ghci == @ProjectVersionMunged@
 


=====================================
libraries/ghc-boot/ghc-boot.cabal.in
=====================================
@@ -49,6 +49,14 @@ Library
             GHC.UniqueSubdir
             GHC.Version
 
+    -- reexport modules from ghc-boot-th so that packages don't have to import
+    -- both ghc-boot and ghc-boot-th. It makes the dependency graph easier to
+    -- understand and to refactor.
+    reexported-modules:
+              GHC.LanguageExtensions.Type
+            , GHC.ForeignSrcLang.Type
+            , GHC.Lexeme
+
     -- but done by Hadrian
     -- autogen-modules:
     --         GHC.Version


=====================================
libraries/ghci/ghci.cabal.in
=====================================
@@ -79,7 +79,6 @@ library
         deepseq          == 1.4.*,
         filepath         == 1.4.*,
         ghc-boot         == @ProjectVersionMunged@,
-        ghc-boot-th      == @ProjectVersionMunged@,
         ghc-heap         == @ProjectVersionMunged@,
         template-haskell == 2.17.*,
         transformers     == 0.5.*



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8af954d202de1de0671062c3f55e43fc783f8192

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8af954d202de1de0671062c3f55e43fc783f8192
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/20200916/969b4b37/attachment-0001.html>


More information about the ghc-commits mailing list