Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
14b5e9d8
Commit
14b5e9d8
authored
Jan 08, 2017
by
Robert Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected missing parentheses and added comment.
parent
b992faed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
cabal-install/Distribution/Client/Targets.hs
cabal-install/Distribution/Client/Targets.hs
+12
-9
No files found.
cabal-install/Distribution/Client/Targets.hs
View file @
14b5e9d8
...
...
@@ -754,15 +754,18 @@ instance Text UserConstraint where
-- Package property
let
keyword
str
x
=
Parse
.
skipSpaces1
>>
Parse
.
string
str
>>
return
x
prop
<-
(
parse
>>=
return
.
PackagePropertyVersion
)
+++
keyword
"installed"
PackagePropertyInstalled
+++
keyword
"source"
PackagePropertySource
+++
keyword
"test"
(
PackagePropertyStanzas
[
TestStanzas
])
+++
keyword
"bench"
(
PackagePropertyStanzas
[
BenchStanzas
])
prop
<-
((
parse
>>=
return
.
PackagePropertyVersion
)
+++
keyword
"installed"
PackagePropertyInstalled
+++
keyword
"source"
PackagePropertySource
+++
keyword
"test"
(
PackagePropertyStanzas
[
TestStanzas
])
+++
keyword
"bench"
(
PackagePropertyStanzas
[
BenchStanzas
]))
-- Note: the parser is left-biased here so that we
-- don't get an ambiguous parse from 'installed',
-- 'source', etc. being regarded as flags.
<++
(
Parse
.
skipSpaces1
>>
parseFlagAssignment
>>=
return
.
PackagePropertyFlags
)
...
...
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