summaryrefslogtreecommitdiff
path: root/libraries/base/Data/Version.hs
diff options
context:
space:
mode:
authorsimonmar <unknown>2005-07-08 12:22:02 +0000
committersimonmar <unknown>2005-07-08 12:22:02 +0000
commit0d0409f4a5e1be067a4ddb488d312b38086a0bb0 (patch)
tree5ad47fb5b725f2346d00aa3688604d78c2ec231c /libraries/base/Data/Version.hs
parent858a97b5b7af0628f86ad846df6b0760daba3716 (diff)
downloadhaskell-0d0409f4a5e1be067a4ddb488d312b38086a0bb0.tar.gz
[project @ 2005-07-08 12:22:02 by simonmar]
Fix instance Eq Version
Diffstat (limited to 'libraries/base/Data/Version.hs')
-rw-r--r--libraries/base/Data/Version.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/Data/Version.hs b/libraries/base/Data/Version.hs
index c52d21c6e6..d82fc3a072 100644
--- a/libraries/base/Data/Version.hs
+++ b/libraries/base/Data/Version.hs
@@ -120,8 +120,8 @@ instance Typeable Version where
instance Eq Version where
v1 == v2 = versionBranch v1 == versionBranch v2
- && all (`elem` (versionTags v2)) (versionTags v1)
- -- tags may be in any order
+ && sort (versionTags v1) == sort (versionTags v2)
+ -- tags may be in any order
instance Ord Version where
v1 `compare` v2 = versionBranch v1 `compare` versionBranch v2