Ticket #4123: mvar-no-prelude.dpatch

File mvar-no-prelude.dpatch, 33.6 KB (added by tibbe, 3 years ago)
Line 
11 patch for repository /usr/local/google/src/base-event:
2
3Tue Jun  8 11:13:20 CEST 2010  Johan Tibell <johan.tibell@gmail.com>
4  * Remove dependency on the Prelude in Control.Concurrent.MVar
5
6New patches:
7
8[Remove dependency on the Prelude in Control.Concurrent.MVar
9Johan Tibell <johan.tibell@gmail.com>**20100608091320
10 Ignore-this: 3395190fb353dd93893c553da50ba836
11] {
12hunk ./Control/Concurrent/MVar.hs 1
13+{-# OPTIONS_GHC -XNoImplicitPrelude #-}
14 -----------------------------------------------------------------------------
15 -- |
16 -- Module      :  Control.Concurrent.MVar
17hunk ./Control/Concurrent/MVar.hs 49
18                 )
19 #endif
20 
21+#ifdef __GLASGOW_HASKELL__
22+import GHC.Base
23+#else
24 import Prelude
25hunk ./Control/Concurrent/MVar.hs 53
26+#endif
27+
28 import Control.Exception.Base
29 
30 {-|
31}
32
33Context:
34
35[Attempt to untangle part of the module mess
36Bryan O'Sullivan <bos@serpentine.com>**20100607012643
37 Ignore-this: 9b599d3270e901476e7a907e532e0121
38]
39[Switch to Maybe, remove some dead code
40Bryan O'Sullivan <bos@serpentine.com>**20100607003039
41 Ignore-this: da4278964fde5881516b257762867565
42]
43[Remove ambiguous copy of startIOManagerThread
44Bryan O'Sullivan <bos@serpentine.com>**20100607002345
45 Ignore-this: edc37101dbff89ceeae5cfe2532d602c
46]
47[Fix parts of the build
48Bryan O'Sullivan <bos@serpentine.com>**20100606210421
49 Ignore-this: 5145c1c6bcc23d781e15deb1fed46698
50 
51 We're still stuck:
52 
53 libraries/base/GHC/Conc.lhs:1:1:
54     Circular imports: module `GHC.Conc' depends on itself
55 
56]
57[Patch event code in
58Bryan O'Sullivan <bos@serpentine.com>**20100606210344
59 Ignore-this: bbded0f57b793a2c2e3559ac2c6ab025
60]
61[Move files around
62Bryan O'Sullivan <bos@serpentine.com>**20100606204929
63 Ignore-this: 94052d7f77a90ab0e945e90ed79fc2e
64]
65[bump version to 4.3.0.0, added instance MonadPlus STM
66Simon Marlow <marlowsd@gmail.com>**20100601144831
67 Ignore-this: 7c3cf7574499c4267372493f2636dc0
68]
69[Moved MonadPlus instance for STM from Control.Monad.STM to GHC.Conc to avoid an orphaned instance
70Bas van Dijk <v.dijk.bas@gmail.com>**20100516160651
71 Ignore-this: 651b852942b2fae2b93f996e39239b8f
72]
73[Added Applicative and Alternative instances for STM
74Bas van Dijk <v.dijk.bas@gmail.com>**20100516171756
75 Ignore-this: 567003bc4040bc97105cda4d31ebf04a
76]
77[expand Foldable instance for Array
78Ross Paterson <ross@soi.city.ac.uk>**20100602212154
79 Ignore-this: 9bd9e9666a9400431eb92352244fe7e7
80]
81[doc comment illustrating Foldable(foldr)
82Ross Paterson <ross@soi.city.ac.uk>**20100527150833
83 Ignore-this: 8f27d889379803f3ba86d6e928428f3c
84]
85[fix syntax in doc comments
86Ross Paterson <ross@soi.city.ac.uk>**20100527150757
87 Ignore-this: cb78da51d60ff6863dc395f1a892c103
88]
89[export hGetBufSome (#4046)
90Simon Marlow <marlowsd@gmail.com>**20100520093538
91 Ignore-this: f467fad9722e27edfad6b3dd75290e7b
92]
93[hWaitForInput: don't try to read from the device (#4078)
94Simon Marlow <marlowsd@gmail.com>**20100517133741
95 Ignore-this: 55ec33b03397380259b91e4ca62207a6
96 readTextDeviceNonBlocking is not non-blocking on Windows
97]
98[hSetEncoding: change the encoding on both read and write sides (#4066)
99Simon Marlow <marlowsd@gmail.com>**20100514124628
100 Ignore-this: 5b9e9caef06356d0296c584159709ebb
101]
102[Correct haddock formatting.
103Adam Vogt <vogt.adam@gmail.com>**20100423022103
104 Ignore-this: d2622339302048fda48080f7d5ce4a2f
105]
106[Fix for hGetBufSome
107Simon Marlow <marlowsd@gmail.com>**20100505135637
108 Ignore-this: 2019680f8fb223956cacfcf0d046f133
109]
110[improve the documentation for throwTo and killThread (#3884)
111Simon Marlow <marlowsd@gmail.com>**20100505135600
112 Ignore-this: ce881d96ddb729acb6ca09c779975e7d
113]
114[elaborate the docs for unsafePerformIO a bit
115Simon Marlow <marlowsd@gmail.com>**20100505101249
116 Ignore-this: 1cec3f67560b672c64c5a0dcf9a79eb7
117]
118[add Typeable instance
119Simon Marlow <marlowsd@gmail.com>**20100504152815
120 Ignore-this: 6d9cf9d62f0ef17fa459bf213a04098
121]
122[Add hGetBufSome, like hGetBuf but can return short reads
123Simon Marlow <marlowsd@gmail.com>**20100504152759
124 Ignore-this: 195c905b43f8d9505029364e2c5b18e
125]
126[Add swap (#3298)
127Simon Marlow <marlowsd@gmail.com>**20100504095339
128 Ignore-this: 13b007dc4594ce252997ec6fa0bbd976
129]
130[inline allocaArray0, to fix withCString benchmark
131Simon Marlow <marlowsd@gmail.com>**20100423124729
132 Ignore-this: 35c96816acc2f3aaf9dd29f7995fa6f0
133]
134[raise asynchronous exceptions asynchronously (#3997)
135Simon Marlow <marlowsd@gmail.com>**20100421094932
136 Ignore-this: 6d987d93d382c0f69c68c326312abd6b
137]
138[add NOINLINE pragmas for stdin/stdout/stderr
139Simon Marlow <marlowsd@gmail.com>**20100421082041
140 Ignore-this: 3fc130268ec786f28d945858d6690986
141]
142[INLINE alloca and malloc
143Simon Marlow <marlowsd@gmail.com>**20100419135333
144 Ignore-this: b218bd611f18721b1505a8c0b9e6a16a
145 See discussion on glasgow-haskell-users:
146   http://www.haskell.org/pipermail/glasgow-haskell-users/2010-April/018740.html
147]
148[Move comment closer to the offending line
149Matthias Kilian <kili@outback.escape.de>**20100419155421
150 Ignore-this: b34a1d7affd66f67d210df2377b585d9
151]
152[Ignore the return code of c_fcntl_write again
153Matthias Kilian <kili@outback.escape.de>**20100415140452
154 Ignore-this: 266d8ba02cc3cb79c85629b3528261c9
155 
156 The return code has been ignored in the past on purpose, because
157 O_NONBLOCK will fail on BSDs for some special files. This fixes the
158 problem mentioned in
159 http://www.haskell.org/pipermail/glasgow-haskell-users/2010-April/018698.html
160 
161]
162[Fix bitrot in IO debugging code
163Ian Lynagh <igloo@earth.li>**20100413134339
164 Also switched to using Haskell Bools (rather than CPP) to en/disable it,
165 so it shouldn't break again in the future.
166]
167[Tiny code tidy-up
168Ian Lynagh <igloo@earth.li>**20100413011147]
169[remove old/wrong comment
170Simon Marlow <marlowsd@gmail.com>**20100325161403
171 Ignore-this: e6e377d44af48c4162d17d55bdf3f821
172]
173[withThread: block asynchronous exceptions before installing exception handler.
174Bas van Dijk <v.dijk.bas@gmail.com>**20100329131624
175 Ignore-this: be5aeb47dbd73807b5f94df11afbb81c
176 Note that I don't unblock the given io computation. Because AFAICS
177 withThread is only called with 'waitFd' which only performs an FFI
178 call which can't receive asynchronous exceptions anyway.
179]
180[runInUnboundThread: block asynchronous exceptions before installing exception handler
181Bas van Dijk <v.dijk.bas@gmail.com>**20100329131549
182 Ignore-this: a00c5e32fe3981ff87bedd367a69051e
183]
184[fix the deprecation message (GHC.IO.Handle.Base -> GHC.IO.Handle)
185Simon Marlow <marlowsd@gmail.com>**20100330121137
186 Ignore-this: 4ca8500a01ac93454507aa8f9dd001f9
187]
188[Make SampleVar an abstract newtype
189Bas van Dijk <v.dijk.bas@gmail.com>**20100318200349
190 Ignore-this: 27939e2a064b75e71cb146117346be30
191]
192[Fix bugs regarding asynchronous exceptions and laziness in Control.Concurrent.SampleVar
193Bas van Dijk <v.dijk.bas@gmail.com>**20100318200104
194 Ignore-this: 7376b2a3afe155daf233a8f1ddc0a7a
195  - Block asynchronous exceptions at the right places
196  - Force thunks before putting them in a MVar
197]
198[Write the thunk 'next' to the MVar
199Bas van Dijk <v.dijk.bas@gmail.com>**20100319125951
200 Ignore-this: dd25636cf220131385ff2fd32493d456
201]
202[change to use STM, fixing 4 things
203Simon Marlow <marlowsd@gmail.com>**20100318104436
204 Ignore-this: 551d30280a7941c08f5c3b14576bdd70
205   1. there was no async exception protection
206   2. there was a space leak (now new value is strict)
207   3. using atomicModifyIORef would be slightly quicker, but can
208      suffer from adverse scheduling issues (see #3838)
209   4. also, the STM version is faster.
210]
211[Tweak docs
212Ian Lynagh <igloo@earth.li>**20100312214129]
213[Fixed dead links in documentation of forkIO
214Bas van Dijk <v.dijk.bas@gmail.com>**20100308222415
215 Ignore-this: 7deb8fd064c867fbede2a6b2e9da4f15
216]
217[Documentation fixes in Control.Exception
218Bas van Dijk <v.dijk.bas@gmail.com>**20100301220442
219 Ignore-this: 761fcba401cbd1f47276ddfc9b5b80f2
220]
221[Plug two race conditions that could lead to deadlocks in the IO manager
222Simon Marlow <marlowsd@gmail.com>**20100225120255
223 Ignore-this: e6983d6b953104d370278ab3e4617e8b
224]
225[FIX #3866: improve documentation of Data.Data.Constr
226jpm@cs.uu.nl**20100224125506
227 Ignore-this: 3818c5d8fee012a3cf322fb455b6e5dc
228]
229[UNDO: Handle NaN, -Infinity and Infinity in the toRational for Float/Double (#3676)
230Simon Marlow <marlowsd@gmail.com>**20100223101603
231 Ignore-this: 78becb2d39b3cd9a1a473a5811ca7d92
232]
233[Put the complexity in the length docs. Fixes trac #3680
234Ian Lynagh <igloo@earth.li>**20100221191425]
235[nhc98 should build Data.Functor.
236Malcolm.Wallace@cs.york.ac.uk**20100221163218]
237[Update the exitWith docs
238Ian Lynagh <igloo@earth.li>**20100213140004
239 Error pointed out by Volker Wysk <vw@volker-wysk.de>
240]
241[Handle NaN, -Infinity and Infinity in the toRational for Float/Double (#3676)
242Simon Marlow <marlowsd@gmail.com>**20100211101955
243 Ignore-this: 261415363303efca265e80290eac5f28
244]
245[For nhc98, import unsafeInterleaveIO rather than defining it here.
246Malcolm.Wallace@cs.york.ac.uk**20100204171021]
247[Stifle warning about unused return value
248benl@cse.unsw.edu.au**20100203025537]
249[fix #3832: use the locale encoding in openTempFile
250Simon Marlow <marlowsd@gmail.com>**20100120211830
251 Ignore-this: df4f778cc5fefb32290c798db722632c
252 Also while I was here fix an XXX: the Handle contained an
253 uninformative string like <fd: 4> for error messages rather than the
254 real file path.
255]
256[Fix the build: export void, so it doesn't give an unused binding warning
257Ian Lynagh <igloo@earth.li>**20100116174451]
258[hIsEOF: don't do any decoding (#3808)
259Simon Marlow <marlowsd@gmail.com>**20100112230317
260 Ignore-this: 6a384dd2d547ffe3ad3762920e5c1671
261]
262[Control.Monad: +void :: f a -> f ()
263gwern0@gmail.com**20100108214455
264 Ignore-this: 4dc07452315f2d1b4941903ff42fc45f
265 See http://hackage.haskell.org/trac/ghc/ticket/3292
266 Turns m a -> m (). Lets one call functions for their side-effects without
267 having to get rid of their return values with '>> return ()'. Very useful
268 in many contexts (parsing, IO etc.); particularly good for 'forkIO' and 'forM_',
269 as they demand return types of 'IO ()' though most interesting IO functions
270 return non-().
271]
272[Replace the implementation of mergesort with a 2x faster one.
273Malcolm.Wallace@cs.york.ac.uk**20091224152014
274 See ticket http://hackage.haskell.org/trac/ghc/ticket/2143.
275]
276[Restore previous Data.Typeable.typeOf*Default implementations for non-ghc.
277Malcolm.Wallace@cs.york.ac.uk**20091223142625
278 Not all compilers have ScopedTypeVariables.
279]
280[Add comments about double bounds-checking, and fast paths for rectangular arrays
281simonpj@microsoft.com**20091218165655
282 Ignore-this: ea0849419dc00927aba4bd410b1cc58d
283 
284 See Note [Double bounds-checking of index values] for the details.
285 
286 The fast paths omit the doubled checks for cases we know about
287]
288[Fix Trac #3245: memoising typeOf
289simonpj@microsoft.com**20091218155117
290 Ignore-this: 5a178a7f2222293c5ee0c3c43bd1b625
291 
292 The performance bug in #3245 was caused by computing the typeRep
293 once for each call of typeOf, rather than once for each dictionary
294 contruction.  (Computing TypeReps is reasonably expensive, because
295 of the hash-consing machinery.)
296 
297 This is readily fixed by putting the TypeRep construction outside
298 the lambda.  (Arguably GHC might have worked that out itself,
299 but it involves floating something between a type lambda and a
300 value lambda, which GHC doesn't currently do. If it happens a lot
301 we could fix that.)
302]
303[Mark 'index' as INLINE in GHC.Arr
304simonpj@microsoft.com**20091216170441
305 Ignore-this: a4df9d8acf496c8e0e9ce5a520509a2a
306 
307 This makes indexing much faster. See Trac #1216
308]
309[Comment the remaining orphan instance modules
310Ian Lynagh <igloo@earth.li>**20091206125021]
311[De-orphan Eq/Ord Float/Double
312Ian Lynagh <igloo@earth.li>**20091205181238]
313[Add comments to "OPTIONS_GHC -fno-warn-orphans" pragmas
314Ian Lynagh <igloo@earth.li>**20091205165854]
315[Data.Either.partitionEithers was insufficiently lazy.
316Malcolm.Wallace@cs.york.ac.uk**20091202032807
317 Ignore-this: 77e1b3288f66608c71458d8a91bcbe12
318 Spotted by Daniel Fischer.
319]
320[fix the docs regarding finalizer guarantees
321Simon Marlow <marlowsd@gmail.com>**20091130144409
322 Ignore-this: d1ab9532c74a002b8075ff60febcbe2d
323]
324[x86_64 requires more stack
325Malcolm.Wallace@cs.york.ac.uk**20091201033745]
326[check for size < 0 in mallocForeignPtrBytes and friends (#3514)
327Simon Marlow <marlowsd@gmail.com>**20091125143822
328 Ignore-this: 91077d01da2bbe1dfed5155e8b40da9
329]
330[hGetContents: close the handle properly on error
331Simon Marlow <marlowsd@gmail.com>**20091125123435
332 Ignore-this: bc37ff678acc6e547dc390285e056eb9
333 
334 When hGetContents caught an error it was closing the handle and then
335 throwing the exception, without updating the handle with the new
336 closed state.  This lead to a double-closed, which was the cause of
337 
338 *** glibc detected *** ./Setup: double free or corruption
339 
340 when iconv_close was called twice on the decoder.
341 
342 See http://hackage.haskell.org/trac/hackage/ticket/609
343]
344[Fix arities of mapFB and zipFB
345Roman Leshchinskiy <rl@cse.unsw.edu.au>**20091126232219
346 Ignore-this: c4e14cd0a92622549c86e67237a40865
347]
348[Remove an unnecessary -fno-warn-orphans flag
349Ian Lynagh <igloo@earth.li>**20091126123404]
350[Tweak layout to work with alternative layout rule
351Ian Lynagh <igloo@earth.li>**20091125232349]
352[Tweak layout to be accepted by the alternative layout rul
353Ian Lynagh <igloo@earth.li>**20091125194147]
354[Make sure zipWithFB has arity 2
355Roman Leshchinskiy <rl@cse.unsw.edu.au>**20091125010003
356 Ignore-this: 4cf60c55666f03d22a9f5a6e07f52d36
357 
358 It gets 2 arguments in the "zipWith" rule but its arity was higher and the new
359 inliner didn't inline it sometimes, for instance here:
360 
361 mpp ::  [Double] -> [Double] -> [Double] -> [Double] -> [Double]
362 mpp as bs cs ds = zipWith (*) (zipWith (+) as bs) (zipWith (+) cs ds)
363 
364 This was a regression vs. 6.10.
365]
366[Remove an old comment
367Ian Lynagh <igloo@earth.li>**20091124134647]
368[De-orphan the Eq/Ord Integer instances
369Ian Lynagh <igloo@earth.li>**20091124133639]
370[Whitespace only
371Ian Lynagh <igloo@earth.li>**20091124133421]
372[Derive some more instances, rather than writing them by hand
373Ian Lynagh <igloo@earth.li>**20091124011747]
374[We can now derive Ord ()
375Ian Lynagh <igloo@earth.li>**20091124011416]
376[De-orphan tuple Eq/Ord instances
377Ian Lynagh <igloo@earth.li>**20091123233343]
378[Control.Exception.Base no longer has any orphans
379Ian Lynagh <igloo@earth.li>**20091123224905]
380[De-orphan the MonadFix ST instance for GHC
381Ian Lynagh <igloo@earth.li>**20091123223544]
382[Rearrange the contents of Control.Monad.ST; no functionality changes
383Ian Lynagh <igloo@earth.li>**20091123222702]
384[De-orphan the Eq/Ord [a] instances
385Ian Lynagh <igloo@earth.li>**20091123215635]
386[De-orphan the Eq/Ord Char instances
387Ian Lynagh <igloo@earth.li>**20091123202253]
388[De-orphan the Eq/Ord Bool instances
389Ian Lynagh <igloo@earth.li>**20091123201817]
390[Move Eq/Ord Ordering instances to de-orphan them
391Ian Lynagh <igloo@earth.li>**20091123194310]
392[Remove ffi warnings for nhc98.
393Malcolm.Wallace@cs.york.ac.uk**20091123063743]
394[Second attempt to fix #1185 (forkProcess and -threaded)
395Simon Marlow <marlowsd@gmail.com>**20091111151915
396 Ignore-this: fa5f5d5e4e080d4b612a37244f937f9c
397 
398 Patch 2/2: first patch is to ghc
399 
400 This time without dynamic linker hacks, instead I've expanded the
401 existing rts/Globals.c to cache more CAFs, specifically those in
402 GHC.Conc.  We were already using this trick for signal handlers, I
403 should have realised before.
404 
405 It's still quite unsavoury, but we can do away with rts/Globals.c in
406 the future when we switch to a dynamically-linked GHCi.
407]
408[Rollback #1185 fix
409Simon Marlow <marlowsd@gmail.com>**20091106140629
410 Ignore-this: cd5667e8474e37e01ba26a1984274811
411 
412 rolling back:
413 
414 Tue Nov  3 16:05:40 GMT 2009  Simon Marlow <marlowsd@gmail.com>
415   * Fix #1185: restart the IO manager after fork()
416   
417   This is the libraries/base part of the patch; there is a corresponding
418   patch to GHC itself.
419   
420   The main change is that we now keep track of the IO manager's ThreadId
421   in a top-level MVar, and ensureIOManagerIsRunning checks whether a
422   previous IO manager thread is alive before starting one.  In the child
423   of fork(), we can hence call ensureIOManagerIsRunning to restart the
424   IO manager.
425 
426     M ./GHC/Conc.lhs -46 +44
427 
428 Wed Nov  4 17:49:45 GMT 2009  Ian Lynagh <igloo@earth.li>
429   * Fix the build on Windows
430 
431     M ./GHC/Conc.lhs -6 +4
432]
433[Fix the build on Windows
434Ian Lynagh <igloo@earth.li>**20091104174945]
435[Fix #1185: restart the IO manager after fork()
436Simon Marlow <marlowsd@gmail.com>**20091103160540
437 Ignore-this: 6dc05464f1500104554637f4759738cc
438 
439 This is the libraries/base part of the patch; there is a corresponding
440 patch to GHC itself.
441 
442 The main change is that we now keep track of the IO manager's ThreadId
443 in a top-level MVar, and ensureIOManagerIsRunning checks whether a
444 previous IO manager thread is alive before starting one.  In the child
445 of fork(), we can hence call ensureIOManagerIsRunning to restart the
446 IO manager.
447]
448[improve the documentation for throwErrnoIfRetry
449Simon Marlow <marlowsd@gmail.com>**20091016112404
450 Ignore-this: b77275cacf730e15757946027168f63e
451]
452[Don't inline unpackFoldrCString ever
453simonpj@microsoft.com**20091029135350
454 Ignore-this: 85d672649b1b776efc7e97500b05d4f9
455]
456[Inline more default methods
457simonpj@microsoft.com**20091029135330
458 Ignore-this: 289c44b0afd6d5631c2a4e0664275ca9
459 
460 Namely Monad: (>>)
461        Eq:    (==), (/=)
462        Num:   (-), negate
463        Real:  quot, rem, div, mod, recip, (/), truncate
464        Float: (**), logBase, sqrt, tan, tanh
465]
466[Move error messages out of INLINEd default methods
467simonpj@microsoft.com**20091029135118
468 Ignore-this: 9e35dc947f94827a3529eb53a41575fd
469 
470 No need to duplicate the error generation!
471]
472[Exploit now-working default-method INLINE pragmas for Data.Bits
473simonpj@microsoft.com**20091029135041
474 Ignore-this: 8adf225f31ca7a3181ee087e9e4fe535
475 
476 * Add INLINE pragmas to default methods for class Bits
477 
478 * Remove redundant instance methods elsewhere, now that
479   the default method will do the job
480]
481[Tidy up and comment imports
482simonpj@microsoft.com**20091029134414
483 Ignore-this: bf2be31035de975d8995e988933cc940
484]
485[Inline foldr and (.) when applied to two arguments not three
486simonpj@microsoft.com**20091029134335
487 Ignore-this: fccb6f3e90e15f44cb465814be85ede2
488 
489 The new INLINE story is (by design) arity-sensitive, so we must
490 put fewer argument on the LHS for foldr and (.)
491]
492[dirUtils.c no longer available
493Malcolm.Wallace@cs.york.ac.uk**20091013093833]
494[Make hGetContents throw an exception if an error is encountered
495Simon Marlow <marlowsd@gmail.com>**20091012152955
496 Ignore-this: 9f7a7176193eab25c9daaacd9261f2de
497 
498 Strictly speaking this breaks Haskell 98 compatibility, which requires
499 hGetContents to just end the lazy stream silently if an error is
500 encountered.  However, for a few reasons we think it will make
501 everyone's life a bit easier if we make this change
502 
503  1. Errors will be a lot more common in GHC 6.12.1, in the form
504     of Unicode decoding errors.
505 
506  2. When Haskell 98 was designed, we didn't know how to throw
507     exceptions from inside lazy I/O, but now we do.
508 
509  3. If anyone is actually relying on the previous behaviour, their
510     code is arguably broken.
511]
512[Re-instate System.Console.Getopt for nhc98 builds.
513Malcolm.Wallace@cs.york.ac.uk**20091013092843
514 Although it was split out of base a while back, that change was
515 reverted for ghc soon afterwards, but nhc98 never noticed.
516]
517[Roll back "Another instance of nhc98's strange import semantics."
518Ian Lynagh <igloo@earth.li>**20091009185618
519 Fri Oct  9 14:50:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
520 GHC (correctly) warns about the unused import, which breaks the validate
521 build.
522]
523[Roll back "Cope with nhc98's (occasionally-strange) import semantics"
524Ian Lynagh <igloo@earth.li>**20091009184704
525 Fri Oct  9 14:43:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
526 GHC (correctly) warns about the unused import, which breaks the validate
527 build.
528]
529[It seems that nhc98 needs defaulting in Data.Fixed.
530Malcolm.Wallace@cs.york.ac.uk**20091009135242]
531[Another instance of nhc98's strange import semantics.
532Malcolm.Wallace@cs.york.ac.uk**20091009135051]
533[Make Data.Functor compatible with non-GHC compilers.
534Malcolm.Wallace@cs.york.ac.uk**20091009134821]
535[Cope with nhc98's (occasionally-strange) import semantics.
536Malcolm.Wallace@cs.york.ac.uk**20091009134351]
537[Fix gratuitous breakage of nhc98 in System.IO.
538Malcolm.Wallace@cs.york.ac.uk**20091009134001]
539[Fix gratuitous breakage of nhc98 in Control.Exception.Base.
540Malcolm.Wallace@cs.york.ac.uk**20091009133615]
541[Fix gratuitous breakage of non-GHC in Data.Fixed.
542Malcolm.Wallace@cs.york.ac.uk**20091009133330]
543[Fix gratuitous breakage for non-GHC in Data.Bits.
544Malcolm.Wallace@cs.york.ac.uk**20091009133257]
545[Use UTF-32LE instead of UTF32LE
546Simon Marlow <marlowsd@gmail.com>**20091006100207
547 Ignore-this: 7f881e36543d250ef848c9f60d67655a
548 The latter is not recognised by some iconv implementations.
549]
550[Strip any Byte Order Mark (BOM) from the front of decoded streams.
551Ben.Lippmeier@anu.edu.au*-20090930084229
552 Ignore-this: d0d0c3ae87b31d71ef1627c8e1786445
553 When decoding to UTF-32, Solaris iconv inserts a BOM at the front
554 of the stream, but Linux iconv doesn't.
555]
556[use UTF32BE/UTF32LE instead of UCS-4/UCS-4LE
557Simon Marlow <marlowsd@gmail.com>**20091005101554
558 Ignore-this: 2aef5e9bec421e714953b7aa1bdfc1b3
559]
560[Strip any Byte Order Mark (BOM) from the front of decoded streams.
561Ben.Lippmeier@anu.edu.au**20090930084229
562 Ignore-this: d0d0c3ae87b31d71ef1627c8e1786445
563 When decoding to UTF-32, Solaris iconv inserts a BOM at the front
564 of the stream, but Linux iconv doesn't.
565]
566[Add traceEvent :: String -> IO ()
567Simon Marlow <marlowsd@gmail.com>**20090925141257
568 Ignore-this: 8b1888bbf9682ffba13f815b6000e4b1
569 For emitting an event via the RTS tracing framework
570]
571[Fix the error message when flushing the read buffer of a non-seekable Handle
572Simon Marlow <marlowsd@gmail.com>**20090923090536
573 Ignore-this: 4342026df93759d99480f4e13f80a492
574]
575[Fix #3534: No need to flush the byte buffer when setting binary mode
576Simon Marlow <marlowsd@gmail.com>**20090923090445
577 Ignore-this: 625817ed7ae2c12291eb993a99dc640a
578]
579[Use let !y = x in .. x .. instead of seq in $! and evaluate (#2273)
580Simon Marlow <marlowsd@gmail.com>**20090916140454]
581[make some Applicative functions into methods, and split off Data.Functor (proposal #3335)
582Ross Paterson <ross@soi.city.ac.uk>**20090915173109
583 Ignore-this: a0cff4de6dfdbcbd56a66101bc4855a9
584 
585 The following functions
586 
587     (<$) :: Functor f => a -> f b -> f a
588     (*>) :: Applicative f => f a -> f b -> f b
589     (<*) :: Applicative f => f a -> f b -> f a
590     some :: Alternative f => f a -> f [a]
591     many :: Alternative f => f a -> f [a]
592 
593 are moved into the corresponding classes, with the existing implementations
594 as default definitions.  This gives people creating instances the option of
595 defining specialized implementations of these functions, though they should
596 be equivalent to the default definitions.
597 
598 Although (<$) is now a method of the Functor class, it is hidden in the
599 re-export by the Prelude, Control.Monad and Monad.  The new module
600 Data.Functor exposes the full class, plus the function (<$>).  These are
601 also re-exported by Control.Applicative.
602]
603[On Windows, use the console code page for text file encoding/decoding.
604Judah Jacobson <judah.jacobson@gmail.com>**20090913022126
605 Ignore-this: 86c2f2db8ef92b751599795d3195187b
606 
607 We keep all of the code page tables in the module
608 GHC.IO.Encoding.CodePage.Table.  That file was generated automatically
609 by running codepages/MakeTable.hs; more details are in the comments at the
610 start of that script.
611 
612 Storing the lookup tables adds about 40KB to each statically linked executable;
613 this only increases the size of a "hello world" program by about 7%.
614 
615 Currently we do not support double-byte encodings (Chinese/Japanese/Korean), since
616 including those codepages would increase the table size to 400KB.  It will be
617 straightforward to implement them once the work on library DLLs is finished.
618]
619[Fix "init" docs: the input list need not be finite. Fixes trac #3465
620Ian Lynagh <igloo@earth.li>**20090911210437]
621[Bump base version to 4.2.0.0
622Ian Lynagh <igloo@earth.li>**20090911153913]
623[Address #3310
624Simon Marlow <marlowsd@gmail.com>**20090830152850
625 Ignore-this: 40c7f7c171ee299a83092fd360a952b7
626 
627  - Rename BlockedOnDeadMVar   -> BlockedIndefinitelyOnMVar
628  - Rename BlockedIndefinitely -> BlockedIndefinitelyOnSTM
629  - instance Show BlockedIndefinitelyOnMVar is now
630      "blocked indefinitely in an MVar operation"
631  - instance Show BlockedIndefinitelyOnSTM is now
632      "blocked indefinitely in an STM transaction"
633 
634 clients using Control.OldException will be unaffected (the new
635 exceptions are mapped to the old names).  However, for base4-compat
636 we'll need to make a version of catch/try that does a similar
637 mapping.
638]
639[Fix unicode conversion for MSB architectures
640Ben.Lippmeier@anu.edu.au**20090830130028
641 This fixes the SPARC/Solaris build.
642]
643[Fix #3441: detect errors in partial sequences
644Simon Marlow <marlowsd@gmail.com>**20090830075909
645 Ignore-this: d12a75d95e0cae5eb1555266810ec281
646]
647[Fix hWaitForInput
648Simon Marlow <marlowsd@gmail.com>**20090827152116
649 Ignore-this: 2550e911f1a4d4357a5aa8d1764238ce
650 It was erroneously waiting when there were bytes to decode waiting in
651 the byte buffer.
652]
653[fix debugging code
654Simon Marlow <marlowsd@gmail.com>**20090827150628
655 Ignore-this: e1c82fdc19a22e247cd69ff6fa11921d
656]
657[Allow for configurable iconv include and library locations.
658Matthias Kilian <kili@outback.escape.de>**20090826154406
659 Ignore-this: be95fab611a5534cf184b508964ed498
660 This should help to fix the build on OpenBSD.
661]
662[typo in comment
663Simon Marlow <marlowsd@gmail.com>**20090826085252
664 Ignore-this: 1903ee0f354157a6ed3871c100f6b1b9
665]
666[un-hide some modules from the Haddock docs
667Simon Marlow <marlowsd@gmail.com>**20090825152457
668 Ignore-this: dce6606f93cf977fb24ebe99082dfa62
669]
670[Apply fix for #1548, from squadette@gmail.com
671Simon Marlow <marlowsd@gmail.com>**20090819120700
672 Ignore-this: 31c237c46a6445f588ed4b8c51bb6231
673]
674[improvements to Data.Fixed: instances for Typeable and Data, more predefined types
675Ashley Yakeley <ashley@semantic.org>**20090812055058
676 Ignore-this: feeece36d5632f02a05d137d2a39ab78
677]
678[Fix "Cabal check" warnings
679Ian Lynagh <igloo@earth.li>**20090811215856]
680[Add a GHC.Constants module; fixes trac #3094
681Ian Lynagh <igloo@earth.li>**20090809183252]
682[Apply proposal #3393
683Ian Lynagh <igloo@earth.li>**20090809134717
684 Add openTempFileWithDefaultPermissions and
685 openBinaryTempFileWithDefaultPermissions.
686]
687[Add some more C wrappers; patch from Krister Walfridsson
688Ian Lynagh <igloo@earth.li>**20090807200631
689 Fixes 21 testsuite errors on NetBSD 5.99.
690]
691[Fixing configure for autoconf 2.64
692Alexander Dunlap <alexander.dunlap@gmail.com>**20090805060748
693 Ignore-this: 992ab91ae3d68c12dbb265776e33e243
694]
695[add INLINE toList
696Ross Paterson <ross@soi.city.ac.uk>**20090806142853
697 Ignore-this: aba16aabb17d5dca44f15d188945680e
698 
699 In anticipation of the fixing of #2353.
700]
701[fix a copyright
702Simon Marlow <marlowsd@gmail.com>**20090805134045
703 Ignore-this: b0ffbdd38fbba121e8bcba37c4082a60
704]
705[Tweak the BufferedIO class to enable a memory-mapped file implementation
706Simon Marlow <marlowsd@gmail.com>**20090805134036
707 Ignore-this: ec67d7a0a6d977438deaa342503f77e0
708 We have to eliminate the assumption that an empty write buffer can be
709 constructed by setting the buffer pointers to zero: this isn't
710 necessarily the case when the buffer corresponds to a memory-mapped
711 file, or other in-memory device implementation.
712]
713[Deprecate Control.OldException
714Ian Lynagh <igloo@earth.li>**20090804143910]
715[Windows build fix, following RTS tidyup
716Simon Marlow <marlowsd@gmail.com>**20090803131121
717 Ignore-this: ce862fb91c2b234211a8757f98690778
718]
719[Updates to follow the RTS tidyup
720Simon Marlow <marlowsd@gmail.com>**20090801220743
721 Ignore-this: 6e92412df93a66c12d75344053d5634
722 C functions like isDoubleNaN moved here (primFloat.c)
723]
724[Add integer-simple as a build option
725Ian Lynagh <igloo@earth.li>**20090722013151]
726[Use shift[LR]Integer in the Bits Integer instance
727Ian Lynagh <igloo@earth.li>**20090721222440]
728[depend directly on integer-gmp, rather than indirecting through integer
729Ian Lynagh <igloo@earth.li>**20090721185228]
730[Move the instances of Functor and Monad IO to GHC.Base, to avoid orphans
731Simon Marlow <marlowsd@gmail.com>**20090722102130
732 Ignore-this: a7d85ac0025d559674249de0108dbcf4
733]
734[move "instance Exception Dynamic" so it isn't an orphan
735Simon Marlow <marlowsd@gmail.com>**20090721093854
736 Ignore-this: 5ede91ecfec2112c91b699d4de87cd02
737]
738[Improve the index checking for array accesses; fixes #2120 #2669
739Ian Lynagh <igloo@earth.li>**20090719153228
740 As well as checking that offset we are reading is actually inside the
741 array, we now also check that it is "in range" as defined by the Ix
742 instance. This fixes confusing behaviour (#2120) and improves some error
743 messages (#2669).
744]
745[Make chr say what its argument was, if it's a bad argument
746Ian Lynagh <igloo@earth.li>**20090718151049]
747[remove unused warning
748Simon Marlow <marlowsd@gmail.com>**20090715124416
749 Ignore-this: 31f613654089d0f4a44363946087b41e
750]
751[warning fix: -fno-implicit-prelude -> -XNoImplicitPrelude
752Simon Marlow <marlowsd@gmail.com>**20090715122839
753 Ignore-this: dc8957249731d5bcb71c01899e5adf2b
754]
755[Add hGetEncoding :: Handle -> IO (Maybe TextEncoding)
756Simon Marlow <marlowsd@gmail.com>**20090715122519
757 Ignore-this: 14c3eff996db062da1199739781e4708
758 as suggested during the discussion on the libraries list
759]
760[Add more documentation to mkTextEncoding
761Simon Marlow <marlowsd@gmail.com>**20090715122414
762 Ignore-this: 97253b2624267df3a246a18121e8ea81
763 noting that "//IGNORE" and "//TRANSLIT" suffixes can be used with GNU
764 iconv.
765]
766[Add the utf8_bom codec
767Simon Marlow <marlowsd@gmail.com>**20090715122257
768 Ignore-this: 1c9396cd805201fe873a39382ced79c7
769 as suggested during the discussion on the libraries list.
770]
771[Export Unicode and newline functionality from System.IO; update Haddock docs
772Simon Marlow <marlowsd@gmail.com>**20090713113104
773 Ignore-this: c3f017a555335aa55d106253393f72e2
774]
775[add a comment about the non-workingness of CHARBUF_UTF16
776Simon Marlow <marlowsd@gmail.com>**20090707124406
777 Ignore-this: 98d00411b68d688b3b4cffc9507b1f35
778]
779[Fix build on Windows
780Ian Lynagh <igloo@earth.li>**20090711004351]
781[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
782Ian Lynagh <igloo@earth.li>**20090710204513]
783[Use throwErrnoIfMinus1_ when calling getrusage
784Ian Lynagh <igloo@earth.li>**20090710204221]
785[Remove an unused import
786Ian Lynagh <igloo@earth.li>**20090710153345]
787[reportStackOverflow now returns IO ()
788Ian Lynagh <igloo@earth.li>**20090710153257
789 It used to do "return undefined" to return IO a.
790]
791[GHC.Conc.reportError now returns IO ()
792Ian Lynagh <igloo@earth.li>**20090710152646
793 It used to return IO a, by "return undefined".
794]
795[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
796Ian Lynagh <igloo@earth.li>**20090710152526]
797[Minor SampleVar refactoring
798Ian Lynagh <igloo@earth.li>**20090710151438]
799[Fix "warn-unused-do-bind" warnings in GHC/IO/Handle/Text.hs
800Ian Lynagh <igloo@earth.li>**20090710122905]
801[Fix some "warn-unused-do-bind" warnings where we just want to ignore the result
802Ian Lynagh <igloo@earth.li>**20090710005638]
803[Use the result of writeCharBuf in GHC/IO/Encoding/Latin1.hs too
804Ian Lynagh <igloo@earth.li>**20090710004032]
805[Minor code tidyups in GHC.Conc
806Ian Lynagh <igloo@earth.li>**20090710003801]
807[Fix "warn-unused-do-bind" warning in GHC.Conc
808Ian Lynagh <igloo@earth.li>**20090710003530
809 If we fail to communicate with the IO manager then we print a warning
810 using debugErrLn from the ghc-prim package.
811]
812[Fix "warn-unused-do-bind" warnings in System.Posix.Internals
813Ian Lynagh <igloo@earth.li>**20090709164546]
814[Fix "warn-unused-do-bind" warnings where we really do want to ignore the result
815Ian Lynagh <igloo@earth.li>**20090709163912]
816[Add back imports needed on Windows
817Ian Lynagh <igloo@earth.li>**20090707181924]
818[Remove unused imports
819Ian Lynagh <igloo@earth.li>**20090707115810]
820[Remove unused imports from base
821simonpj@microsoft.com**20090706111842
822 Ignore-this: f9b5f353e3bb820f787c56d615b28765
823 
824 These unused imports are detected by the new unused-import code
825 
826]
827[Use the result of writeCharBuf
828Simon Marlow <marlowsd@gmail.com>**20090706133303
829 Ignore-this: 52288dd559bf4c4f313df6197091d935
830   
831 This only makes a difference when CHARBUF_UTF16 is in use, which it
832 normally isn't.  I suspect CHARBUF_UTF16 doesn't currently work for
833 other reasons (CHARBUF_UTF16 was an experiment before I wrote the
834 GHC.IO.Encoding.UTF* codecs), but this patch at least makes it
835 slightly closer to working.
836]
837[Remove some cruft from Data.HashTable
838Ian Lynagh <igloo@earth.li>**20090706181630]
839[Add 'eof' to Text.ParserCombinators.ReadP
840simonpj@microsoft.com**20090706111801
841 Ignore-this: 2aea7b848e00c894761bc4011adaa95d
842 
843 Add a ReadP parser that succeeds at the end of input. Very useful!
844 
845]
846[Don't export CLDouble for GHC; fixes trac #2793
847Ian Lynagh <igloo@earth.li>**20090705155120
848 We never really supported CLDouble (it was a plain old double underneath),
849 and pretending that we do does more harm than good.
850]
851[a byte between 0x80 and 0xBF is illegal immediately (#3341)
852Simon Marlow <marlowsd@gmail.com>**20090702081415
853 Ignore-this: dc19ef59a1a21118d5a7dd38aa2f611c
854]
855[avoid a warning
856Simon Marlow <marlowsd@gmail.com>**20090630084134
857 Ignore-this: c92a45ee216faf01327feae9fe06d6e2
858]
859[Add a wrapper for libiconv.
860Matthias Kilian <kili@outback.escape.de>**20090629183634
861 Ignore-this: 23c6047c0d71b745b495cc223574a47f
862]
863[#include <sys/times.h> if we have it (should fix build problems)
864Simon Marlow <marlowsd@gmail.com>**20090629085351
865 Ignore-this: a35e93b37ca9595c73460243180f4b9d
866]
867[set binary mode for existing FDs on Windows (fixes some GHCi test failures)
868Simon Marlow <marlowsd@gmail.com>**20090626120522
869 Ignore-this: 580cf636e9c77d8427aff6861d089481
870]
871[Move directory-related stuff to the unix package
872Simon Marlow <marlowsd@gmail.com>**20090625120325
873 Ignore-this: b997b3cbce0a46ca87ad825bbdc0a411
874 now that it isn't used on Windows any more.
875]
876[TAG 2009-06-25
877Ian Lynagh <igloo@earth.li>**20090625160056]
878Patch bundle hash:
87908d16138bc4b9a8a95004b9d6b637a4c1004b65b