diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-07-19 21:33:55 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-07-21 05:04:53 -0400 |
commit | 4854a3490518760405f04826df1768b5a7b96da2 (patch) | |
tree | 6523c9098affdbb8b3b69d52729b8dbe71f9f619 /utils | |
parent | 32be44613fed3fa7bff7190381acbdaa8ea15cfc (diff) | |
download | haskell-4854a3490518760405f04826df1768b5a7b96da2.tar.gz |
ghc-cabal: Use fromFlagOrDefault instead of fromFlag
As fromFlag is partial. The only case where we used fromFlag is when
determining whether to strip libraries; we now assume that we shouldn't.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-cabal/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ghc-cabal/Main.hs b/utils/ghc-cabal/Main.hs index 7f2cf91bb8..5827331c9c 100644 --- a/utils/ghc-cabal/Main.hs +++ b/utils/ghc-cabal/Main.hs @@ -14,7 +14,7 @@ import Distribution.Simple.LocalBuildInfo import Distribution.Simple.GHC import Distribution.Simple.Program import Distribution.Simple.Program.HcPkg -import Distribution.Simple.Setup (ConfigFlags(configStripLibs), fromFlag, toFlag) +import Distribution.Simple.Setup (ConfigFlags(configStripLibs), fromFlagOrDefault, toFlag) import Distribution.Simple.Utils (defaultPackageDesc, findHookedPackageDesc, writeFileAtomic, toUTF8LBS) import Distribution.Simple.Build (writeAutogenFiles) @@ -168,7 +168,7 @@ doCopy directory distDir withPrograms = progs', installDirTemplates = idts, configFlags = cfg, - stripLibs = fromFlag (configStripLibs cfg), + stripLibs = fromFlagOrDefault False (configStripLibs cfg), withSharedLib = withSharedLibs } |