Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
b105281a
Commit
b105281a
authored
Jul 06, 2018
by
Alexis Williams
Browse files
Add warning when library installation isn't possible
parent
03abd929
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/CmdInstall.hs
View file @
b105281a
...
...
@@ -88,7 +88,7 @@ import Distribution.Types.UnqualComponentName
import
Distribution.Verbosity
(
Verbosity
,
normal
,
lessVerbose
)
import
Distribution.Simple.Utils
(
wrapText
,
die'
,
notice
(
wrapText
,
die'
,
notice
,
warn
,
withTempDirectory
,
createDirectoryIfMissingVerbose
)
import
Distribution.Utils.Generic
(
writeFileAtomic
)
...
...
@@ -403,6 +403,9 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags)
$
Map
.
toList
$
targetsMap
buildCtx
runProjectPostBuildPhase
verbosity
baseCtx
buildCtx
buildOutcomes
unless
supportsPkgEnvFiles
$
warn
verbosity
"The current compiler doesn't support safely installing libraries. (GHC 8.0+ only)"
let
baseEntries
=
GhcEnvFileClearPackageDbStack
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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