[Git][ghc/ghc][wip/ghc-toolchain-fixes] fix

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Tue Aug 8 12:59:18 UTC 2023



Matthew Pickering pushed to branch wip/ghc-toolchain-fixes at Glasgow Haskell Compiler / GHC


Commits:
ea978dd6 by Matthew Pickering at 2023-08-08T13:59:11+01:00
fix

- - - - -


1 changed file:

- utils/ghc-toolchain/src/GHC/Toolchain/Program.hs


Changes:

=====================================
utils/ghc-toolchain/src/GHC/Toolchain/Program.hs
=====================================
@@ -53,7 +53,7 @@ addFlagIfNew :: String -> Program -> Program
 addFlagIfNew flag prog@(Program path flags)
   = if flag `elem` flags
        then prog
-       else Program path (flag:flags)
+       else Program path (flags ++ [flag])
 
 runProgram :: Program -> [String] -> M ExitCode
 runProgram prog args = do



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ea978dd65c87a59fa452996b723a41442d79202e
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/20230808/66bd5977/attachment.html>


More information about the ghc-commits mailing list