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
Glasgow Haskell Compiler
Packages
Cabal
Commits
bb5e43f2
Commit
bb5e43f2
authored
7 years ago
by
Oleg Grenrus
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4830 from hvr/pr/issue4808
RFC: Potential fix for #4808
parents
d7989bcb
7533cf57
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cabal/Distribution/Types/GenericPackageDescription.hs
+2
-2
2 additions, 2 deletions
Cabal/Distribution/Types/GenericPackageDescription.hs
with
2 additions
and
2 deletions
Cabal/Distribution/Types/GenericPackageDescription.hs
+
2
−
2
View file @
bb5e43f2
...
...
@@ -159,7 +159,7 @@ dispFlagAssignment = Disp.hsep . map (Disp.text . showFlagValue)
-- | Parses a flag assignment.
parsecFlagAssignment
::
ParsecParser
FlagAssignment
parsecFlagAssignment
=
P
.
sepBy
1
(
onFlag
<|>
offFlag
)
P
.
skipSpaces1
parsecFlagAssignment
=
P
.
sepBy
(
onFlag
<|>
offFlag
)
P
.
skipSpaces1
where
onFlag
=
do
P
.
optional
(
P
.
char
'+'
)
...
...
@@ -172,7 +172,7 @@ parsecFlagAssignment = P.sepBy1 (onFlag <|> offFlag) P.skipSpaces1
-- | Parses a flag assignment.
parseFlagAssignment
::
Parse
.
ReadP
r
FlagAssignment
parseFlagAssignment
=
Parse
.
sepBy
1
parseFlagValue
Parse
.
skipSpaces1
parseFlagAssignment
=
Parse
.
sepBy
parseFlagValue
Parse
.
skipSpaces1
where
parseFlagValue
=
(
do
Parse
.
optional
(
Parse
.
char
'+'
)
...
...
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