Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
4f9b6073
Commit
4f9b6073
authored
Dec 10, 2008
by
Duncan Coutts
Browse files
Fix implementation of withinIntervals
parent
54e23f69
Changes
1
Show whitespace changes
Inline
Side-by-side
Distribution/Version.hs
View file @
4f9b6073
...
...
@@ -397,8 +397,8 @@ withinIntervals v (VersionIntervals intervals) = any withinInterval intervals
withinLower
(
LowerBound
v'
InclusiveBound
)
=
v'
<=
v
withinUpper
NoUpperBound
=
True
withinUpper
(
UpperBound
v'
ExclusiveBound
)
=
v
>
v
'
withinUpper
(
UpperBound
v'
InclusiveBound
)
=
v
>=
v
'
withinUpper
(
UpperBound
v'
ExclusiveBound
)
=
v
'
>
v
withinUpper
(
UpperBound
v'
InclusiveBound
)
=
v
'
>=
v
-- | Convert a 'VersionRange' to a sequence of version intervals.
--
...
...
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