Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
edf0e2ec
Commit
edf0e2ec
authored
Jul 07, 2018
by
Alexis Williams
Browse files
(Hopefully) fix GHC 7.10
parent
908f5c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/CmdInstall.hs
View file @
edf0e2ec
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}
...
...
@@ -328,10 +327,10 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags)
envFileExists
<-
doesFileExist
envFile
envEntries
<-
if
|
compilerFlavor
==
GHC
||
compilerFlavor
==
GHCJS
,
supportsPkgEnvFiles
,
envFileExists
->
readGhcEnvironmentFile
envFile
|
otherwise
->
return
[]
(
compilerFlavor
==
GHC
||
compilerFlavor
==
GHCJS
)
&&
supportsPkgEnvFiles
&&
envFileExists
then
readGhcEnvironmentFile
envFile
else
return
[]
cabalDir
<-
getCabalDir
let
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment