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
8ccc35ee
Commit
8ccc35ee
authored
17 years ago
by
Duncan Coutts
Browse files
Options
Downloads
Patches
Plain Diff
Put spaces round || and && when displaying version range expressions
This makes them much more readable.
parent
c17be3d8
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
Distribution/Version.hs
+3
-3
3 additions, 3 deletions
Distribution/Version.hs
with
3 additions
and
3 deletions
Distribution/Version.hs
+
3
−
3
View file @
8ccc35ee
...
...
@@ -62,7 +62,7 @@ import Distribution.Text ( Text(..), display )
import
qualified
Distribution.Compat.ReadP
as
Parse
import
Distribution.Compat.ReadP
((
+++
))
import
qualified
Text.PrettyPrint
as
Disp
import
Text.PrettyPrint
((
<>
))
import
Text.PrettyPrint
((
<>
)
,
(
<+>
)
)
-- -----------------------------------------------------------------------------
-- Version ranges
...
...
@@ -129,9 +129,9 @@ instance Text VersionRange where
disp
(
UnionVersionRanges
(
EarlierVersion
v2
)
(
ThisVersion
v1
))
|
v1
==
v2
=
Disp
.
text
"<="
<>
disp
v1
disp
(
UnionVersionRanges
r1
r2
)
=
disp
r1
<>
Disp
.
text
"||"
<>
disp
r2
=
disp
r1
<
+
>
Disp
.
text
"||"
<
+
>
disp
r2
disp
(
IntersectVersionRanges
r1
r2
)
=
disp
r1
<>
Disp
.
text
"&&"
<>
disp
r2
=
disp
r1
<
+
>
Disp
.
text
"&&"
<
+
>
disp
r2
parse
=
do
f1
<-
factor
...
...
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