Ticket #1802: proposal

File proposal, 2.4 KB (added by malcolm.wallace@…, 6 years ago)

darcs patch

Line 
1New patches:
2
3[In Data.Version, make equality comparisons independent of trailing zeros.
4Malcolm.Wallace@cs.york.ac.uk**20071025161240] {
5hunk ./Data/Version.hs 122
6-  v1 == v2  =  versionBranch v1 == versionBranch v2
7+  v1 == v2  =  branchEq (versionBranch v1) (versionBranch v2)
8hunk ./Data/Version.hs 125
9+  where
10+    branchEq :: [Int] -> [Int] -> Bool
11+    branchEq [] [] = True
12+    branchEq vs [] = all (==0) vs
13+    branchEq [] vs = all (==0) vs
14+    branchEq (v:vs) (w:ws) = v==w && branchEq vs ws
15hunk ./Data/Version.hs 133
16-  v1 `compare` v2 = versionBranch v1 `compare` versionBranch v2
17-
18+  v1 `compare` v2 = versionBranch v1 `cmpBranch` versionBranch v2
19+  where
20+    cmpBranch [] [] = EQ
21+    cmpBranch vs [] | all (==0) vs = EQ
22+                    | otherwise    = GT
23+    cmpBranch [] vs | all (==0) vs = EQ
24+                    | otherwise    = LT
25+    cmpBranch (v:vs) (w:ws) | v==w = cmpBranch vs ws
26+                            | otherwise = compare v w
27+
28}
29
30Context:
31
32[Fix doc building with Haddock 0.9
33Simon Marlow <simonmar@microsoft.com>**20071024090947
34 I was using a recent build here, which is more tolerant.
35]
36[FIX #1258: document that openTempFile is secure(ish)
37Simon Marlow <simonmar@microsoft.com>**20071023130928
38 Also change the mode from 0666 to 0600, which seems like a more
39 sensible value and matches what C's mkstemp() does.
40]
41[Clean up .cabal file a bit
42Duncan Coutts <duncan@haskell.org>**20071022132708
43 specify build-type and cabal-version >= 1.2
44 put extra-tmp-files in the right place
45 use os(windows) rather than os(mingw32)
46]
47[base in 6.8 and head branch should be version 3.0
48Don Stewart <dons@galois.com>**20071007150408]
49[FIX #1652: openTempFile should accept an empty string for the directory
50Simon Marlow <simonmar@microsoft.com>**20071018122345]
51[clean up duplicate code
52Simon Marlow <simonmar@microsoft.com>**20071017141311]
53[expose the value of +RTS -N as GHC.Conc.numCapabilities (see #1733)
54Simon Marlow <simonmar@microsoft.com>**20071009132042]
55[typo
56Simon Marlow <simonmar@microsoft.com>**20070917130703]
57[put extra-tmp-files field in the right place
58Simon Marlow <simonmar@microsoft.com>**20070914140812]
59[Add more entries to boring file
60Ian Lynagh <igloo@earth.li>**20070913210500]
61[Add a boring file
62Ian Lynagh <igloo@earth.li>**20070913204641]
63[TAG 2007-09-13
64Ian Lynagh <igloo@earth.li>**20070913215720]
65Patch bundle hash:
66fe636959d9254b8fabd6e7ad6926a4d0b7ee0d15