Skip to content
GitLab
Menu
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
7ece59b3
Commit
7ece59b3
authored
Oct 27, 2014
by
Mikhail Glushenkov
Browse files
GHC issue #8825 was fixed in 7.8.4.
parent
c5f51c26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/Program/Builtin.hs
View file @
7ece59b3
...
...
@@ -54,7 +54,8 @@ import Distribution.Simple.Utils
import
Distribution.Compat.Exception
(
catchIO
)
import
Distribution.Version
(
Version
(
..
),
withinRange
,
withinVersion
)
(
Version
(
..
),
withinRange
,
earlierVersion
,
laterVersion
,
intersectVersionRanges
)
import
Data.Char
(
isDigit
)
...
...
@@ -107,14 +108,17 @@ ghcProgram = (simpleProgram "ghc") {
-- Workaround for https://ghc.haskell.org/trac/ghc/ticket/8825
-- (spurious warning on non-english locales)
-- Only GHC 7.8.* seems to be affected.
programPostConf
=
\
_verbosity
ghcProg
->
do
let
ghcProg'
=
ghcProg
{
programOverrideEnv
=
(
"LANGUAGE"
,
Just
"en"
)
:
programOverrideEnv
ghcProg
}
-- Only the 7.8 branch seems to be affected. Fixed in 7.8.4.
affectedVersionRange
=
intersectVersionRanges
(
laterVersion
$
Version
[
7
,
8
,
0
]
[]
)
(
earlierVersion
$
Version
[
7
,
8
,
4
]
[]
)
return
$
maybe
ghcProg
(
\
v
->
if
withinRange
v
(
withinVersion
$
Version
[
7
,
8
]
[]
)
(
\
v
->
if
withinRange
v
affectedVersionRange
then
ghcProg'
else
ghcProg
)
(
programVersion
ghcProg
)
}
...
...
Write
Preview
Supports
Markdown
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