[Git][ghc/ghc][wip/bump-filepath-2] Update filepath to filepath-1.4.100.0

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Tue Sep 20 11:38:25 UTC 2022



Matthew Pickering pushed to branch wip/bump-filepath-2 at Glasgow Haskell Compiler / GHC


Commits:
8dcf331d by Matthew Pickering at 2022-09-20T12:38:13+01:00
Update filepath to filepath-1.4.100.0

Updates submodule

* Always rely on vendored filepath
* filepath must be built as stage0 dependency because it uses
  template-haskell.

Towards #22098

- - - - -


4 changed files:

- hadrian/src/Settings/Default.hs
- hadrian/src/Settings/Packages.hs
- libraries/filepath
- libraries/template-haskell/template-haskell.cabal.in


Changes:

=====================================
hadrian/src/Settings/Default.hs
=====================================
@@ -81,6 +81,7 @@ stage0Packages = do
              , directory
              , process
              , exceptions
+             , filepath
              , ghc
              , runGhc
              , ghcBoot
@@ -122,7 +123,6 @@ stage1Packages = do
         , containers
         , deepseq
         , exceptions
-        , filepath
         , ghc
         , ghcBignum
         , ghcCompact


=====================================
hadrian/src/Settings/Packages.hs
=====================================
@@ -213,11 +213,6 @@ packageArgs = do
         , package hpcBin
           ? builder (Cabal Flags) ? arg "-build-tool-depends"
 
-        --------------------------------- template-haskell ----------------------------------
-
-        , package templateHaskell
-            ? mconcat [ builder (Cabal Flags) ? notStage0 ? arg "+vendor-filepath"
-                      , builder Ghc ? notStage0 ? arg ("-i" <> (root </> pkgPath filepath)) ]
         ]
 
 ghcBignumArgs :: Args


=====================================
libraries/filepath
=====================================
@@ -1 +1 @@
-Subproject commit 4d7092ad3a8357b18a8fcbeb6fcf38045460eb98
+Subproject commit 872e19fce06ddd40bd0771dbd3cad2c3c6ed5e7d


=====================================
libraries/template-haskell/template-haskell.cabal.in
=====================================
@@ -27,14 +27,6 @@ source-repository head
     location: https://gitlab.haskell.org/ghc/ghc.git
     subdir:   libraries/template-haskell
 
-
--- We give the option to vendor filepath to avoid making filepath non-reinstallable..
--- see #21738 for why we are doing this now and what the plan is for the future.
-Flag vendor-filepath
-    Description: Vendor the dependency on filepath
-    Default: False
-    Manual: True
-
 Library
     default-language: Haskell2010
     other-extensions:
@@ -68,25 +60,16 @@ Library
         ghc-prim,
         pretty      == 1.1.*
 
-    if flag(vendor-filepath)
-      other-modules:
-        System.FilePath
-        System.FilePath.Posix
-        System.FilePath.Windows
-      hs-source-dirs: ./vendored-filepath .
-      default-extensions:
-        ImplicitPrelude
-    else
-      build-depends: filepath
-      hs-source-dirs: .
+    other-modules:
+      System.FilePath
+      System.FilePath.Posix
+      System.FilePath.Windows
+    hs-source-dirs: ./vendored-filepath .
+    default-extensions:
+      ImplicitPrelude
 
     ghc-options: -Wall
 
     -- We need to set the unit ID to template-haskell (without a
     -- version number) as it's magic.
     ghc-options: -this-unit-id template-haskell
-
-    -- This should match the default-extensions used in 'ghc.cabal'. This way,
-    -- GHCi can be used to load it along with the compiler.
-    Default-Extensions:
-        NoImplicitPrelude



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8dcf331d5d6ddf1b6418546023d69385ec39e102
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/20220920/9c22b468/attachment-0001.html>


More information about the ghc-commits mailing list