[Git][ghc/ghc][wip/T25693] 2 commits: hadrian: Drop uses of head/tail

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Fri Feb 7 20:26:19 UTC 2025



Ben Gamari pushed to branch wip/T25693 at Glasgow Haskell Compiler / GHC


Commits:
7e865429 by Ben Gamari at 2025-02-07T15:25:57-05:00
hadrian: Drop uses of head/tail

To silence warnings with GHC 9.10

- - - - -
123db914 by Ben Gamari at 2025-02-07T15:25:57-05:00
hadrian: Disable x-data-list-nonempty-unzip warning

- - - - -


2 changed files:

- hadrian/src/Rules/Dependencies.hs
- hadrian/src/Settings/Parser.hs


Changes:

=====================================
hadrian/src/Rules/Dependencies.hs
=====================================
@@ -1,4 +1,5 @@
 {-# OPTIONS_GHC -Wno-deprecations #-}
+{-# OPTIONS_GHC -Wno-x-data-list-nonempty-unzip #-}
 
 module Rules.Dependencies (buildPackageDependencies) where
 


=====================================
hadrian/src/Settings/Parser.hs
=====================================
@@ -189,7 +189,7 @@ matchStringSettingsM s = do
     else go (head ks)
 
   where go k
-          | k == s = State.modify tail
+          | k == s = State.modify (drop 1)
           | otherwise = throwError $
               "expected " ++ show s ++ ", got " ++ show k
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/becffc9cd840215cc94de44c77e60a3378278e58...123db91417734ff5b6080cfa86b16fad60538766

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/becffc9cd840215cc94de44c77e60a3378278e58...123db91417734ff5b6080cfa86b16fad60538766
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/20250207/e6a24216/attachment.html>


More information about the ghc-commits mailing list