Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
5339b36e
Commit
5339b36e
authored
7 years ago
by
Herbert Valerio Riedel
Browse files
Options
Downloads
Patches
Plain Diff
Emit warning when an unknown GHC version is encountered
This finally addresses the long-standing ticket #415
parent
49da992b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cabal/Distribution/Simple/GHC.hs
+7
-0
7 additions, 0 deletions
Cabal/Distribution/Simple/GHC.hs
with
7 additions
and
0 deletions
Cabal/Distribution/Simple/GHC.hs
+
7
−
0
View file @
5339b36e
...
...
@@ -131,6 +131,13 @@ configure verbosity hcPath hcPkgPath conf0 = do
(
userMaybeSpecifyPath
"ghc"
hcPath
conf0
)
let
implInfo
=
ghcVersionImplInfo
ghcVersion
-- Cabal 2.2 supports ghc >= 6.11 && < 8.5
unless
(
ghcVersion
<
mkVersion
[
8
,
5
])
$
warn
verbosity
$
"Unknown/unsupported 'ghc' version detected "
++
"(Cabal "
++
display
cabalVersion
++
" supports 'ghc' version < 8.5): "
++
programPath
ghcProg
++
" is version "
++
display
ghcVersion
-- This is slightly tricky, we have to configure ghc first, then we use the
-- location of ghc to help find ghc-pkg in the case that the user did not
-- specify the location of ghc-pkg directly:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment