Ticket #1952: minmax.dpatch

File minmax.dpatch, 48.6 KB (added by jmcarthur, 3 years ago)

patch to add Min and Max to Data.Monoid

Line 
11 patch for repository http://darcs.haskell.org/packages/base:
2
3Wed Sep 22 22:10:10 CDT 2010  Jake McArthur <Jake.McArthur@gmail.com>
4  * add Min and Max to Data.Monoid (implements Ticket #1952)
5
6New patches:
7
8[add Min and Max to Data.Monoid (implements Ticket #1952)
9Jake McArthur <Jake.McArthur@gmail.com>**20100923031010
10 Ignore-this: 6a1722d07c0e402d4606000aaf9e9dea
11] {
12hunk ./Data/Monoid.hs 28
13         -- * Num wrappers
14         Sum(..),
15         Product(..),
16+        -- * Ord wrappers
17+        Max(..),
18+        Min(..),
19         -- * Maybe wrappers
20         -- $MaybeExamples
21         First(..),
22hunk ./Data/Monoid.hs 184
23         mempty = Product 1
24         Product x `mappend` Product y = Product (x * y)
25 
26+-- | Ordered monoid under 'max'.
27+newtype Max a = Max { getMax :: a }
28+       deriving (Eq, Ord, Read, Show, Bounded)
29+
30+instance (Ord a, Bounded a) => Monoid (Max a) where
31+       mempty = Max minBound
32+       Max a `mappend` Max b = Max (a `max` b)
33+
34+-- | Ordered monoid under 'min'.
35+newtype Min a = Min { getMin :: a }
36+       deriving (Eq, Ord, Read, Show, Bounded)
37+
38+instance (Ord a, Bounded a) => Monoid (Min a) where
39+       mempty = Min maxBound
40+       Min a `mappend` Min b = Min (a `min` b)
41+
42 -- $MaybeExamples
43 -- To implement @find@ or @findLast@ on any 'Foldable':
44 --
45}
46
47Context:
48
49[doc tweak for Directory file type: file names are '\0'-separated
50Simon Marlow <marlowsd@gmail.com>**20100922113811
51 Ignore-this: 96b7b004bd6e5bc3e958ad55bf238ba1
52]
53[documentation for IODeviceType (#4317, edited by me)
54Simon Marlow <marlowsd@gmail.com>**20100915131341
55 Ignore-this: 21c50ca7a189eebcf299523b6e942bae
56]
57[Allow Data.HashTable construction with user-supplied size
58**20100722210726
59 Ignore-this: bd54880bb16a106a992f03b040dc4164
60 
61 This avoids some resizing for users who know they will be inserting a
62 lot of data.
63 
64 http://hackage.haskell.org/trac/ghc/ticket/4193
65]
66[some fixes for hGetBufSome
67Simon Marlow <marlowsd@gmail.com>**20100916113732
68 Ignore-this: 3e596a606c180dc4859ea8f4c9132ca1
69  - fix one case where it was blocking when it shouldn't
70  - a couple of error-message tweaks
71]
72[Windows: map ERROR_NO_DATA to EPIPE, rather than EINVAL
73Simon Marlow <marlowsd@gmail.com>**20100915142618
74 Ignore-this: 9023e5f0542419f225aef26cb6b1d88d
75 WriteFile() returns ERROR_NO_DATA when writing to a pipe that is
76 "closing", however by default the write() wrapper in the CRT maps this
77 to EINVAL so we get confusing things like
78 
79   hPutChar: invalid argument (Invalid Argumnet)
80 
81 when piping the output of a Haskell program into something that closes
82 the pipe early.  This was happening in the testsuite in a few place.
83 
84 The solution is to map ERROR_NO_DATA to EPIPE correctly, as we
85 explicitly check for EPIPE on stdout (in GHC.TopHandler) so we can
86 exit without an error in this case.
87]
88[tighten up parsing of numbers (#1579)
89Simon Marlow <marlowsd@gmail.com>**20100913214733
90 Ignore-this: 3411bf3d2e98cfacb9e0afd11d79e722
91]
92[Add absentError. 
93simonpj@microsoft.com**20100914134639
94 Ignore-this: d0eef5a87e1def4cdbde92a55241c8c4
95 
96 This patch accompanies the HEAD patch:
97 
98   Tue Sep 14 12:38:27 BST 2010  simonpj@microsoft.com
99     * Make absent-arg wrappers work for unlifted types (fix Trac #4306)
100     
101     Previously we were simply passing arguments of unlifted
102     type to a wrapper, even if they were absent, which was
103     stupid.
104     
105     See Note [Absent error Id] in WwLib.
106]
107[Add missing import, fixes build on windows
108simonpj@microsoft.com**20100914122750
109 Ignore-this: 12ece15ef94982ddfbf5f9f7900619da
110]
111[Add a suitable Show instance for TextEncoding (#4273)
112Simon Marlow <marlowsd@gmail.com>**20100913154459
113 Ignore-this: 77f2235460895debd2827f34c42c3435
114]
115[don't fill a finalized handle with an error (see comment)
116Simon Marlow <marlowsd@gmail.com>**20100913153350
117 Ignore-this: c72cdb6898dffa88eca1d781171b2943
118]
119[deriving (Eq, Ord, Read, Show) for Newline and NewlineMode
120Simon Marlow <marlowsd@gmail.com>**20100913153031
121 Ignore-this: 9b9b29bfb7abf5550cfbfa7788f81bf
122]
123[fix warning on Windows
124Simon Marlow <marlowsd@gmail.com>**20100913111536
125 Ignore-this: dacc5448c452daad60ed37a1a5ed096e
126]
127[Put the state-token argument on fill, done, adjust on the RHS
128simonpj@microsoft.com**20100913101832
129 Ignore-this: d228b492de7d4635c026ed24cbc17e34
130 
131 This is so that the functions will inline when
132 applied to their normal (non-state-token) aguments.
133 
134 I forget why I did this, but it seems like the right thing anyway.
135]
136[avoid Foreign.unsafePerformIO
137Ross Paterson <ross@soi.city.ac.uk>**20100909125521
138 Ignore-this: b698101119ffd1bc6311cce0736f745d
139]
140[Remove debugging code accidentally left in
141Simon Marlow <marlowsd@gmail.com>**20100909113331
142 Ignore-this: 906a14176dd37030b8203782a687936b
143]
144[Fix Windows build; patches frmo ezyang
145Ian Lynagh <igloo@earth.li>**20100908123037
146 Ignore-this: 2f02986087edd7da8382221012c27cd0
147]
148[More accurate isatty test for MinGW.
149Edward Z. Yang <ezyang@mit.edu>**20100907154144
150 Ignore-this: 93bdc2b2a8e65a7c4c7d3906bdda01db
151]
152[Fix the build when HAVE_KQUEUE but not HAVE_KEVENT64
153Ian Lynagh <igloo@earth.li>**20100904223703]
154[Fix warnings
155benl@ouroborus.net**20100830044741
156 Ignore-this: 8397aaec7c36046c9ace403e65f32d32
157]
158[fix cache variable name used by FP_SEARCH_LIBS_PROTO
159Ross Paterson <ross@soi.city.ac.uk>**20100819204858
160 Ignore-this: b8113cb3c6f0e03c507297c99d3d82b7
161]
162[Add a missing castPtr (only shows up in -DDEBUG)
163simonpj@microsoft.com**20100815145127
164 Ignore-this: 30b9c42cd3ce7837bdabd254fe66078d
165]
166[Fixed a rounding error in threadDelay
167Johan Tibell <johan.tibell@gmail.com>**20100813124043
168 Ignore-this: 1cb77d0852233ffffb144b134064ee3c
169]
170[export allocaBytesAligned; make allocaArray use the correct alignment (#2917)
171Simon Marlow <marlowsd@gmail.com>**20100812105524
172 Ignore-this: deb6495f7b7b84deaf02b88927a5ba8c
173]
174[deprecate unGetChan and isEmptyChan (see #4154)
175Simon Marlow <marlowsd@gmail.com>**20100705125952
176 Ignore-this: b4e769959f131b2d0001eb7202bc1b92
177]
178[Add type signatures to cope with lack of local generalisation
179simonpj@microsoft.com**20100728124847
180 Ignore-this: d3af9a47c2821c6081bde05a135a92fb
181]
182[Add type signature in local where
183simonpj@microsoft.com**20100727151532
184 Ignore-this: 1c57063ad32d13e0d1ec8daf968bf055
185]
186[Integrated new I/O manager
187Simon Marlow <marlowsd@gmail.com>**20100810082248
188 Ignore-this: ed70a9066ac9b676a446fe99978fef7a
189 (patch originally by Johan Tibell <johan.tibell@gmail.com>, minor merging by me)
190]
191[Add mfilter to Control.Monad
192jon.fairbairn@cl.cam.ac.uk**20090917145616
193 Ignore-this: de4240b60684f3065b29378df3ea98f2
194 
195 Straightforward MonadPlus version of List.filter. I would
196 prefer to call it filter, but the current naming scheme for
197 Control.Monad implies mfilter.
198 
199]
200[move Monad and MonadFix instances for Either from mtl (proposal #4159)
201Ross Paterson <ross@soi.city.ac.uk>**20100729122449
202 Ignore-this: b0f8cd8643679948d1da43bd7c08c5aa
203 
204 The Monad and MonadFix instances for Either (formerly in the mtl
205 package) are moved to Control.Monad.Instances and Control.Monad.Fix
206 respectively.  The Monad instance is still an orphan, to retain Haskell
207 98 compatibility, but the MonadFix instance is together with its class.
208 The Error constraint is removed from both instances, and the default
209 definition of fail is used.
210]
211[Remove egregious ghc-ish from Foreign.Marshal
212Malcolm.Wallace@me.com**20100722075449]
213[add numSparks :: IO Int (#4167)
214Simon Marlow <marlowsd@gmail.com>**20100720153858
215 Ignore-this: 4543f57a7f137f8cae1c3efc5c023a9b
216]
217[add unsafeLocalState from Haskell 2010, and docs
218Simon Marlow <marlowsd@gmail.com>**20100720082819
219 Ignore-this: dcd79fb546ebe29ddff4df279ec2f38
220]
221[docs: mention that Foreign.unsafePerformIO is deprecated
222Simon Marlow <marlowsd@gmail.com>**20100720082804
223 Ignore-this: 4cfebb8f2a1cddc7d15e94e31b2befa4
224 We can't actually deprecate it without introducing a name clash
225 between Foreign.unsafePerformIO and System.IO.Unsafe.unsafePerformIO
226]
227[doc formatting fix
228Simon Marlow <marlowsd@gmail.com>**20100714151347
229 Ignore-this: 255edef607dcd290e198015240b5d125
230]
231[add module intro from Haskell 2010
232Simon Marlow <marlowsd@gmail.com>**20100714115853
233 Ignore-this: 59b5a07507a059ccccdff2dfb6490a27
234]
235[document exception-overriding behaviour in withFile
236Simon Marlow <marlowsd@gmail.com>**20100714104107
237 Ignore-this: f99e641ea2f46d872cb7420a62fa50dc
238]
239[doc: use "finalizer" consistently
240Simon Marlow <marlowsd@gmail.com>**20100714103649
241 Ignore-this: bdfea40f31dc5045fdbc6e12266dda93
242]
243[clarify meaning of bit
244Simon Marlow <marlowsd@gmail.com>**20100714103310
245 Ignore-this: 521b031f1e83ef34ca03d9aa9273df8a
246]
247[note shortcutting behaviour of any/all/elem
248Simon Marlow <marlowsd@gmail.com>**20100714103304
249 Ignore-this: 1605f362ba0712ad1cea1309636f3ea1
250]
251[add cast{C,U}CharToChar and castCharTo{C,U}Char, from Haskell 2010
252Simon Marlow <marlowsd@gmail.com>**20100713132515
253 Ignore-this: 9b1da827016c7b08668078b45964e9de
254]
255[mention that IntPtr and WordPtr can be marshalled to/from intptr_t and uintptr_t
256Simon Marlow <marlowsd@gmail.com>**20100713132403
257 Ignore-this: dcc112a72746ba117a84fa29e71b6800
258]
259[Partial fix for Trac #4136
260simonpj@microsoft.com**20100707135725
261 Ignore-this: 9548eeb3187d9779d4e5c858a0f35354
262 
263 In 'choose' (which is a library function designed specifically
264 to support derived instances of Read), we must match Symbol
265 as well as Ident, for nullary constructors that (wierdly) are
266 symbols.
267]
268[Fix typo in documentation
269Simon Hengel <simon.hengel@wiktory.org>**20100711141648
270 Ignore-this: c052dd8a681832ef598a323ad55eae3a
271]
272[Remove duplicated word in documentation
273Simon Hengel <simon.hengel@wiktory.org>**20100711072703
274 Ignore-this: fb3732dc57be55f14168792f923433
275]
276[Allow nhc98 to cope with recent changes to Control.Exception.
277Malcolm.Wallace@me.com**20100710170940]
278[ New asynchronous exception control API (base parts)
279Simon Marlow <marlowsd@gmail.com>**20100708152735
280 Ignore-this: 71a4811804f04259f1fe739f8863beaf
281   
282 As discussed on the libraries/haskell-cafe mailing lists
283   http://www.haskell.org/pipermail/libraries/2010-April/013420.html
284 
285 This is a replacement for block/unblock in the asychronous exceptions
286 API to fix a problem whereby a function could unblock asynchronous
287 exceptions even if called within a blocked context.
288 
289 The new terminology is "mask" rather than "block" (to avoid confusion
290 due to overloaded meanings of the latter).
291 
292 The following is the new API; the old API is deprecated but still
293 available for the time being.
294 
295 Control.Exception
296 -----------------
297 
298 mask  :: ((forall a. IO a -> IO a) -> IO b) -> IO b
299 mask_ :: IO a -> IO a
300 
301 uninterruptibleMask :: ((forall a. IO a -> IO a) -> IO b) -> IO b
302 uninterruptibleMask_ :: IO a -> IO
303 
304 getMaskingState :: IO MaskingState
305 
306 data MaskingState
307   = Unmasked
308   | MaskedInterruptible
309   | MaskedUninterruptible
310 
311 
312 Control.Concurrent
313 ------------------
314 
315 forkIOUnmasked :: IO () -> IO ThreadId
316]
317[Async-exception safety, and avoid space leaks
318Simon Marlow <marlowsd@gmail.com>**20100708145819
319 Ignore-this: dbfd0e61551e9e7b4fc1c6fe9b9a83de
320 Patch submitted by: Bas van Dijk <v.dijk.bas@gmail.com>
321 Modified slightly by me to remove non-functional changes.
322]
323[Async-exception safety, and avoid space leaks
324Simon Marlow <marlowsd@gmail.com>**20100708103154
325 Ignore-this: 190c3ac8f6633231624da8cf1316588
326 Patch submitted by: Bas van Dijk <v.dijk.bas@gmail.com>
327 Modified slightly by me to remove non-functional changes.
328]
329[Fix a few places where we forgot to close the text codecs (#4029)
330Simon Marlow <marlowsd@gmail.com>**20100702130210
331 Ignore-this: 2e81a4b4cb343181cef34b0f9e2ded47
332 Each time you invoke :load in GHCi it resets the CAFs, including
333 stdin/stdout/stderr, and each of these was allocating a new iconv_t.
334]
335[remove docs from Monad that belonged on the instance for MonadPlus IO
336Simon Marlow <marlowsd@gmail.com>**20100701154203
337 Ignore-this: 59df02542a7ac9421552a2155d848d27
338]
339[docs: unqualify Prelude.IO
340Simon Marlow <marlowsd@gmail.com>**20100701153817
341 Ignore-this: 73b0202876c827e7a5b4a5ce74e724c4
342]
343[unqualify Float and Double
344Simon Marlow <marlowsd@gmail.com>**20100701142727
345 Ignore-this: cbe89d31a00bf49996a33933324fca17
346]
347[extract information about Data.Time from docs for CTime
348Simon Marlow <marlowsd@gmail.com>**20100701142415
349 Ignore-this: c48c9609b8d36e43e033a7bea81d6f17
350]
351[doc typo
352Simon Marlow <marlowsd@gmail.com>**20100701142354
353 Ignore-this: 17a1fd703831c888975ff63fbfa3a9b2
354]
355[peekArray docs: remove mentions of "this version" and "previous version"
356Simon Marlow <marlowsd@gmail.com>**20100701125333
357 Ignore-this: 39a744874258670bd935ba9e38390939
358]
359[doc typo
360Simon Marlow <marlowsd@gmail.com>**20100701124154
361 Ignore-this: 98f5c286e38c2c34c96b05d5e8bc5ad9
362]
363[doc typo
364Simon Marlow <marlowsd@gmail.com>**20100701124128
365 Ignore-this: 10a4314ec7aed336701fc616fb574ebc
366]
367[doc typo
368Simon Marlow <marlowsd@gmail.com>**20100701123715
369 Ignore-this: c4909a7bf7163460ee5d32f58812041e
370]
371[doc wibble: Haskell 98 I/O Error -> 'IOError'
372Simon Marlow <marlowsd@gmail.com>**20100701123612
373 Ignore-this: bf373df781acbc575e4ffe3b7e6059ae
374]
375[doc typo
376Simon Marlow <marlowsd@gmail.com>**20100701123014
377 Ignore-this: 16aaccae48ef3101adf78ea5b0d5a8fd
378]
379[Haddock hacks to fix whitespace consistency
380Simon Marlow <marlowsd@gmail.com>**20100701121631
381 Ignore-this: 61c58dec52a31fd2d3f331a87d2f903f
382]
383[use '==' consistently rather than '->' in examples
384Simon Marlow <marlowsd@gmail.com>**20100701121616
385 Ignore-this: 472b0a05a85d34d9712186040e1636d9
386]
387[doc wibble: remove confusing mention of "Prelude"
388Simon Marlow <marlowsd@gmail.com>**20100701113308
389 Ignore-this: 232283d0096d01cd45e9b3c5c1e63a6d
390]
391[doc wibble: nonstrict -> non-strict
392Simon Marlow <marlowsd@gmail.com>**20100701113253
393 Ignore-this: 4264f0ab23a0835fc13c6e8601d6b743
394]
395[doc whitespace
396Simon Marlow <marlowsd@gmail.com>**20100701112242
397 Ignore-this: 777a95b1d1140c61d3ab95d5eb5809e7
398]
399[move the doc for 'Char' to its new home in ghc-prim:GHC.Types
400Simon Marlow <marlowsd@gmail.com>**20100629134150
401 Ignore-this: 7687db0077a29498349bfb4b44983985
402]
403[doc wibble
404Simon Marlow <marlowsd@gmail.com>**20100629122608
405 Ignore-this: 9a909e5d015332dc445bd9592e6e386d
406]
407[doc updates in System.IO
408Simon Marlow <marlowsd@gmail.com>**20100629122118
409 Ignore-this: 2257ec1cc4cdb8b7804cfa1f3cf32753
410]
411[doc wibble
412Simon Marlow <marlowsd@gmail.com>**20100625134858
413 Ignore-this: 64c50f29df6c389273b818918fe7033a
414]
415[doc wibbles
416Simon Marlow <marlowsd@gmail.com>**20100624154614
417 Ignore-this: b364aad53beea6e741fee2824459b6e8
418]
419[Fix haddock formatting
420Ian Lynagh <igloo@earth.li>**20100625222623]
421[Give nub's complexity in the haddock docs; fixes #4086
422Ian Lynagh <igloo@earth.li>**20100625222059]
423[correct docs for exitWith: only stdout/stderr are flushed, not all Handles
424Simon Marlow <marlowsd@gmail.com>**20100624130506
425 Ignore-this: 33a938dad8f0bc061572e2ec571cacc7
426]
427[fix docs for isSpace
428Simon Marlow <marlowsd@gmail.com>**20100624130444
429 Ignore-this: b35ff080dbb9833176f08e39dbd9ff6d
430]
431[make the hGetBuf/hPutBuf family work with non-FD Handles (#4144)
432Simon Marlow <marlowsd@gmail.com>**20100624130425
433 Ignore-this: 8200f0208a9b1b1cf4824f343d75819a
434]
435[nit in docs for accumArray
436Simon Marlow <marlowsd@gmail.com>**20100622121131
437 Ignore-this: c066a456c40907e767df10c3990f35ff
438]
439[add doc for the ExitCode type
440Simon Marlow <marlowsd@gmail.com>**20100622120930
441 Ignore-this: 99c34332be7f3565da844528b470054a
442]
443[remove extraneous info from docs for Array
444Simon Marlow <marlowsd@gmail.com>**20100622120921
445 Ignore-this: e2a3f5e84fc23eb7bae911f0680e805e
446]
447[add an INLINE to the list version of traverse, to enable fusion
448Simon Marlow <marlowsd@gmail.com>**20100608082531
449 Ignore-this: ea98cdc3308b406bb04c0f7a38c4424b
450]
451[Don't define the C localeEncoding on Windows
452Ian Lynagh <igloo@earth.li>**20100620202342
453 Ignore-this: c4992f6832a391b0cccc5a9b7d643976
454 (it causes warnings, and isn't used)
455]
456[add Applicative instance for Either (proposal #4095)
457Ross Paterson <ross@soi.city.ac.uk>**20100617225110
458 Ignore-this: 50262ec4700dc16efec5755be5b308c5
459 
460 This is not the only possible instance for Either, but this one is
461 compatible with the usual Monad instance.
462]
463[Use libcharset instead of nl_langinfo(CODESET) if possible.
464pho@cielonegro.org**20100519013112
465 Ignore-this: 4c1e278e022a3d276848afc1dcba4425
466 
467 nl_langinfo(CODESET) doesn't always return standardized variations of the encoding names. Use libcharset if possible, which is shipped together with GNU libiconv.
468]
469[Add a note about the interruptibility of throwTo.
470Simon Marlow <marlowsd@gmail.com>**20100615112720
471 Ignore-this: ae9fabe95310d7c364e95f7784793485
472]
473[docs: note that hGetBufNonBlocking isn't non-blocking on Windows
474Simon Marlow <marlowsd@gmail.com>**20100615112547
475 Ignore-this: 4f3e5213e142149affe08c5123d6efea
476]
477[don't depend on Prelude (#4122)
478Simon Marlow <marlowsd@gmail.com>**20100615105631
479 Ignore-this: 1a3fd49b103fe31cbb453f302c18767f
480]
481[Don't depend on Prelude (#4123)
482Simon Marlow <marlowsd@gmail.com>**20100615105401
483 Ignore-this: cc7616d85a1637bc7621b4f2bc181c0e
484]
485[bump version to 4.3.0.0, added instance MonadPlus STM
486Simon Marlow <marlowsd@gmail.com>**20100601144831
487 Ignore-this: 7c3cf7574499c4267372493f2636dc0
488]
489[Moved MonadPlus instance for STM from Control.Monad.STM to GHC.Conc to avoid an orphaned instance
490Bas van Dijk <v.dijk.bas@gmail.com>**20100516160651
491 Ignore-this: 651b852942b2fae2b93f996e39239b8f
492]
493[Added Applicative and Alternative instances for STM
494Bas van Dijk <v.dijk.bas@gmail.com>**20100516171756
495 Ignore-this: 567003bc4040bc97105cda4d31ebf04a
496]
497[expand Foldable instance for Array
498Ross Paterson <ross@soi.city.ac.uk>**20100602212154
499 Ignore-this: 9bd9e9666a9400431eb92352244fe7e7
500]
501[doc comment illustrating Foldable(foldr)
502Ross Paterson <ross@soi.city.ac.uk>**20100527150833
503 Ignore-this: 8f27d889379803f3ba86d6e928428f3c
504]
505[fix syntax in doc comments
506Ross Paterson <ross@soi.city.ac.uk>**20100527150757
507 Ignore-this: cb78da51d60ff6863dc395f1a892c103
508]
509[export hGetBufSome (#4046)
510Simon Marlow <marlowsd@gmail.com>**20100520093538
511 Ignore-this: f467fad9722e27edfad6b3dd75290e7b
512]
513[hWaitForInput: don't try to read from the device (#4078)
514Simon Marlow <marlowsd@gmail.com>**20100517133741
515 Ignore-this: 55ec33b03397380259b91e4ca62207a6
516 readTextDeviceNonBlocking is not non-blocking on Windows
517]
518[hSetEncoding: change the encoding on both read and write sides (#4066)
519Simon Marlow <marlowsd@gmail.com>**20100514124628
520 Ignore-this: 5b9e9caef06356d0296c584159709ebb
521]
522[Correct haddock formatting.
523Adam Vogt <vogt.adam@gmail.com>**20100423022103
524 Ignore-this: d2622339302048fda48080f7d5ce4a2f
525]
526[Fix for hGetBufSome
527Simon Marlow <marlowsd@gmail.com>**20100505135637
528 Ignore-this: 2019680f8fb223956cacfcf0d046f133
529]
530[improve the documentation for throwTo and killThread (#3884)
531Simon Marlow <marlowsd@gmail.com>**20100505135600
532 Ignore-this: ce881d96ddb729acb6ca09c779975e7d
533]
534[elaborate the docs for unsafePerformIO a bit
535Simon Marlow <marlowsd@gmail.com>**20100505101249
536 Ignore-this: 1cec3f67560b672c64c5a0dcf9a79eb7
537]
538[add Typeable instance
539Simon Marlow <marlowsd@gmail.com>**20100504152815
540 Ignore-this: 6d9cf9d62f0ef17fa459bf213a04098
541]
542[Add hGetBufSome, like hGetBuf but can return short reads
543Simon Marlow <marlowsd@gmail.com>**20100504152759
544 Ignore-this: 195c905b43f8d9505029364e2c5b18e
545]
546[Add swap (#3298)
547Simon Marlow <marlowsd@gmail.com>**20100504095339
548 Ignore-this: 13b007dc4594ce252997ec6fa0bbd976
549]
550[inline allocaArray0, to fix withCString benchmark
551Simon Marlow <marlowsd@gmail.com>**20100423124729
552 Ignore-this: 35c96816acc2f3aaf9dd29f7995fa6f0
553]
554[raise asynchronous exceptions asynchronously (#3997)
555Simon Marlow <marlowsd@gmail.com>**20100421094932
556 Ignore-this: 6d987d93d382c0f69c68c326312abd6b
557]
558[add NOINLINE pragmas for stdin/stdout/stderr
559Simon Marlow <marlowsd@gmail.com>**20100421082041
560 Ignore-this: 3fc130268ec786f28d945858d6690986
561]
562[INLINE alloca and malloc
563Simon Marlow <marlowsd@gmail.com>**20100419135333
564 Ignore-this: b218bd611f18721b1505a8c0b9e6a16a
565 See discussion on glasgow-haskell-users:
566   http://www.haskell.org/pipermail/glasgow-haskell-users/2010-April/018740.html
567]
568[Move comment closer to the offending line
569Matthias Kilian <kili@outback.escape.de>**20100419155421
570 Ignore-this: b34a1d7affd66f67d210df2377b585d9
571]
572[Ignore the return code of c_fcntl_write again
573Matthias Kilian <kili@outback.escape.de>**20100415140452
574 Ignore-this: 266d8ba02cc3cb79c85629b3528261c9
575 
576 The return code has been ignored in the past on purpose, because
577 O_NONBLOCK will fail on BSDs for some special files. This fixes the
578 problem mentioned in
579 http://www.haskell.org/pipermail/glasgow-haskell-users/2010-April/018698.html
580 
581]
582[Fix bitrot in IO debugging code
583Ian Lynagh <igloo@earth.li>**20100413134339
584 Also switched to using Haskell Bools (rather than CPP) to en/disable it,
585 so it shouldn't break again in the future.
586]
587[Tiny code tidy-up
588Ian Lynagh <igloo@earth.li>**20100413011147]
589[remove old/wrong comment
590Simon Marlow <marlowsd@gmail.com>**20100325161403
591 Ignore-this: e6e377d44af48c4162d17d55bdf3f821
592]
593[withThread: block asynchronous exceptions before installing exception handler.
594Bas van Dijk <v.dijk.bas@gmail.com>**20100329131624
595 Ignore-this: be5aeb47dbd73807b5f94df11afbb81c
596 Note that I don't unblock the given io computation. Because AFAICS
597 withThread is only called with 'waitFd' which only performs an FFI
598 call which can't receive asynchronous exceptions anyway.
599]
600[runInUnboundThread: block asynchronous exceptions before installing exception handler
601Bas van Dijk <v.dijk.bas@gmail.com>**20100329131549
602 Ignore-this: a00c5e32fe3981ff87bedd367a69051e
603]
604[fix the deprecation message (GHC.IO.Handle.Base -> GHC.IO.Handle)
605Simon Marlow <marlowsd@gmail.com>**20100330121137
606 Ignore-this: 4ca8500a01ac93454507aa8f9dd001f9
607]
608[Make SampleVar an abstract newtype
609Bas van Dijk <v.dijk.bas@gmail.com>**20100318200349
610 Ignore-this: 27939e2a064b75e71cb146117346be30
611]
612[Fix bugs regarding asynchronous exceptions and laziness in Control.Concurrent.SampleVar
613Bas van Dijk <v.dijk.bas@gmail.com>**20100318200104
614 Ignore-this: 7376b2a3afe155daf233a8f1ddc0a7a
615  - Block asynchronous exceptions at the right places
616  - Force thunks before putting them in a MVar
617]
618[Write the thunk 'next' to the MVar
619Bas van Dijk <v.dijk.bas@gmail.com>**20100319125951
620 Ignore-this: dd25636cf220131385ff2fd32493d456
621]
622[change to use STM, fixing 4 things
623Simon Marlow <marlowsd@gmail.com>**20100318104436
624 Ignore-this: 551d30280a7941c08f5c3b14576bdd70
625   1. there was no async exception protection
626   2. there was a space leak (now new value is strict)
627   3. using atomicModifyIORef would be slightly quicker, but can
628      suffer from adverse scheduling issues (see #3838)
629   4. also, the STM version is faster.
630]
631[Tweak docs
632Ian Lynagh <igloo@earth.li>**20100312214129]
633[Fixed dead links in documentation of forkIO
634Bas van Dijk <v.dijk.bas@gmail.com>**20100308222415
635 Ignore-this: 7deb8fd064c867fbede2a6b2e9da4f15
636]
637[Documentation fixes in Control.Exception
638Bas van Dijk <v.dijk.bas@gmail.com>**20100301220442
639 Ignore-this: 761fcba401cbd1f47276ddfc9b5b80f2
640]
641[Plug two race conditions that could lead to deadlocks in the IO manager
642Simon Marlow <marlowsd@gmail.com>**20100225120255
643 Ignore-this: e6983d6b953104d370278ab3e4617e8b
644]
645[FIX #3866: improve documentation of Data.Data.Constr
646jpm@cs.uu.nl**20100224125506
647 Ignore-this: 3818c5d8fee012a3cf322fb455b6e5dc
648]
649[UNDO: Handle NaN, -Infinity and Infinity in the toRational for Float/Double (#3676)
650Simon Marlow <marlowsd@gmail.com>**20100223101603
651 Ignore-this: 78becb2d39b3cd9a1a473a5811ca7d92
652]
653[Put the complexity in the length docs. Fixes trac #3680
654Ian Lynagh <igloo@earth.li>**20100221191425]
655[nhc98 should build Data.Functor.
656Malcolm.Wallace@cs.york.ac.uk**20100221163218]
657[Update the exitWith docs
658Ian Lynagh <igloo@earth.li>**20100213140004
659 Error pointed out by Volker Wysk <vw@volker-wysk.de>
660]
661[Handle NaN, -Infinity and Infinity in the toRational for Float/Double (#3676)
662Simon Marlow <marlowsd@gmail.com>**20100211101955
663 Ignore-this: 261415363303efca265e80290eac5f28
664]
665[For nhc98, import unsafeInterleaveIO rather than defining it here.
666Malcolm.Wallace@cs.york.ac.uk**20100204171021]
667[Stifle warning about unused return value
668benl@cse.unsw.edu.au**20100203025537]
669[fix #3832: use the locale encoding in openTempFile
670Simon Marlow <marlowsd@gmail.com>**20100120211830
671 Ignore-this: df4f778cc5fefb32290c798db722632c
672 Also while I was here fix an XXX: the Handle contained an
673 uninformative string like <fd: 4> for error messages rather than the
674 real file path.
675]
676[Fix the build: export void, so it doesn't give an unused binding warning
677Ian Lynagh <igloo@earth.li>**20100116174451]
678[hIsEOF: don't do any decoding (#3808)
679Simon Marlow <marlowsd@gmail.com>**20100112230317
680 Ignore-this: 6a384dd2d547ffe3ad3762920e5c1671
681]
682[Control.Monad: +void :: f a -> f ()
683gwern0@gmail.com**20100108214455
684 Ignore-this: 4dc07452315f2d1b4941903ff42fc45f
685 See http://hackage.haskell.org/trac/ghc/ticket/3292
686 Turns m a -> m (). Lets one call functions for their side-effects without
687 having to get rid of their return values with '>> return ()'. Very useful
688 in many contexts (parsing, IO etc.); particularly good for 'forkIO' and 'forM_',
689 as they demand return types of 'IO ()' though most interesting IO functions
690 return non-().
691]
692[Replace the implementation of mergesort with a 2x faster one.
693Malcolm.Wallace@cs.york.ac.uk**20091224152014
694 See ticket http://hackage.haskell.org/trac/ghc/ticket/2143.
695]
696[Restore previous Data.Typeable.typeOf*Default implementations for non-ghc.
697Malcolm.Wallace@cs.york.ac.uk**20091223142625
698 Not all compilers have ScopedTypeVariables.
699]
700[Add comments about double bounds-checking, and fast paths for rectangular arrays
701simonpj@microsoft.com**20091218165655
702 Ignore-this: ea0849419dc00927aba4bd410b1cc58d
703 
704 See Note [Double bounds-checking of index values] for the details.
705 
706 The fast paths omit the doubled checks for cases we know about
707]
708[Fix Trac #3245: memoising typeOf
709simonpj@microsoft.com**20091218155117
710 Ignore-this: 5a178a7f2222293c5ee0c3c43bd1b625
711 
712 The performance bug in #3245 was caused by computing the typeRep
713 once for each call of typeOf, rather than once for each dictionary
714 contruction.  (Computing TypeReps is reasonably expensive, because
715 of the hash-consing machinery.)
716 
717 This is readily fixed by putting the TypeRep construction outside
718 the lambda.  (Arguably GHC might have worked that out itself,
719 but it involves floating something between a type lambda and a
720 value lambda, which GHC doesn't currently do. If it happens a lot
721 we could fix that.)
722]
723[Mark 'index' as INLINE in GHC.Arr
724simonpj@microsoft.com**20091216170441
725 Ignore-this: a4df9d8acf496c8e0e9ce5a520509a2a
726 
727 This makes indexing much faster. See Trac #1216
728]
729[Comment the remaining orphan instance modules
730Ian Lynagh <igloo@earth.li>**20091206125021]
731[De-orphan Eq/Ord Float/Double
732Ian Lynagh <igloo@earth.li>**20091205181238]
733[Add comments to "OPTIONS_GHC -fno-warn-orphans" pragmas
734Ian Lynagh <igloo@earth.li>**20091205165854]
735[Data.Either.partitionEithers was insufficiently lazy.
736Malcolm.Wallace@cs.york.ac.uk**20091202032807
737 Ignore-this: 77e1b3288f66608c71458d8a91bcbe12
738 Spotted by Daniel Fischer.
739]
740[fix the docs regarding finalizer guarantees
741Simon Marlow <marlowsd@gmail.com>**20091130144409
742 Ignore-this: d1ab9532c74a002b8075ff60febcbe2d
743]
744[x86_64 requires more stack
745Malcolm.Wallace@cs.york.ac.uk**20091201033745]
746[check for size < 0 in mallocForeignPtrBytes and friends (#3514)
747Simon Marlow <marlowsd@gmail.com>**20091125143822
748 Ignore-this: 91077d01da2bbe1dfed5155e8b40da9
749]
750[hGetContents: close the handle properly on error
751Simon Marlow <marlowsd@gmail.com>**20091125123435
752 Ignore-this: bc37ff678acc6e547dc390285e056eb9
753 
754 When hGetContents caught an error it was closing the handle and then
755 throwing the exception, without updating the handle with the new
756 closed state.  This lead to a double-closed, which was the cause of
757 
758 *** glibc detected *** ./Setup: double free or corruption
759 
760 when iconv_close was called twice on the decoder.
761 
762 See http://hackage.haskell.org/trac/hackage/ticket/609
763]
764[Fix arities of mapFB and zipFB
765Roman Leshchinskiy <rl@cse.unsw.edu.au>**20091126232219
766 Ignore-this: c4e14cd0a92622549c86e67237a40865
767]
768[Remove an unnecessary -fno-warn-orphans flag
769Ian Lynagh <igloo@earth.li>**20091126123404]
770[Tweak layout to work with alternative layout rule
771Ian Lynagh <igloo@earth.li>**20091125232349]
772[Tweak layout to be accepted by the alternative layout rul
773Ian Lynagh <igloo@earth.li>**20091125194147]
774[Make sure zipWithFB has arity 2
775Roman Leshchinskiy <rl@cse.unsw.edu.au>**20091125010003
776 Ignore-this: 4cf60c55666f03d22a9f5a6e07f52d36
777 
778 It gets 2 arguments in the "zipWith" rule but its arity was higher and the new
779 inliner didn't inline it sometimes, for instance here:
780 
781 mpp ::  [Double] -> [Double] -> [Double] -> [Double] -> [Double]
782 mpp as bs cs ds = zipWith (*) (zipWith (+) as bs) (zipWith (+) cs ds)
783 
784 This was a regression vs. 6.10.
785]
786[Remove an old comment
787Ian Lynagh <igloo@earth.li>**20091124134647]
788[De-orphan the Eq/Ord Integer instances
789Ian Lynagh <igloo@earth.li>**20091124133639]
790[Whitespace only
791Ian Lynagh <igloo@earth.li>**20091124133421]
792[Derive some more instances, rather than writing them by hand
793Ian Lynagh <igloo@earth.li>**20091124011747]
794[We can now derive Ord ()
795Ian Lynagh <igloo@earth.li>**20091124011416]
796[De-orphan tuple Eq/Ord instances
797Ian Lynagh <igloo@earth.li>**20091123233343]
798[Control.Exception.Base no longer has any orphans
799Ian Lynagh <igloo@earth.li>**20091123224905]
800[De-orphan the MonadFix ST instance for GHC
801Ian Lynagh <igloo@earth.li>**20091123223544]
802[Rearrange the contents of Control.Monad.ST; no functionality changes
803Ian Lynagh <igloo@earth.li>**20091123222702]
804[De-orphan the Eq/Ord [a] instances
805Ian Lynagh <igloo@earth.li>**20091123215635]
806[De-orphan the Eq/Ord Char instances
807Ian Lynagh <igloo@earth.li>**20091123202253]
808[De-orphan the Eq/Ord Bool instances
809Ian Lynagh <igloo@earth.li>**20091123201817]
810[Move Eq/Ord Ordering instances to de-orphan them
811Ian Lynagh <igloo@earth.li>**20091123194310]
812[Remove ffi warnings for nhc98.
813Malcolm.Wallace@cs.york.ac.uk**20091123063743]
814[Second attempt to fix #1185 (forkProcess and -threaded)
815Simon Marlow <marlowsd@gmail.com>**20091111151915
816 Ignore-this: fa5f5d5e4e080d4b612a37244f937f9c
817 
818 Patch 2/2: first patch is to ghc
819 
820 This time without dynamic linker hacks, instead I've expanded the
821 existing rts/Globals.c to cache more CAFs, specifically those in
822 GHC.Conc.  We were already using this trick for signal handlers, I
823 should have realised before.
824 
825 It's still quite unsavoury, but we can do away with rts/Globals.c in
826 the future when we switch to a dynamically-linked GHCi.
827]
828[Rollback #1185 fix
829Simon Marlow <marlowsd@gmail.com>**20091106140629
830 Ignore-this: cd5667e8474e37e01ba26a1984274811
831 
832 rolling back:
833 
834 Tue Nov  3 16:05:40 GMT 2009  Simon Marlow <marlowsd@gmail.com>
835   * Fix #1185: restart the IO manager after fork()
836   
837   This is the libraries/base part of the patch; there is a corresponding
838   patch to GHC itself.
839   
840   The main change is that we now keep track of the IO manager's ThreadId
841   in a top-level MVar, and ensureIOManagerIsRunning checks whether a
842   previous IO manager thread is alive before starting one.  In the child
843   of fork(), we can hence call ensureIOManagerIsRunning to restart the
844   IO manager.
845 
846     M ./GHC/Conc.lhs -46 +44
847 
848 Wed Nov  4 17:49:45 GMT 2009  Ian Lynagh <igloo@earth.li>
849   * Fix the build on Windows
850 
851     M ./GHC/Conc.lhs -6 +4
852]
853[Fix the build on Windows
854Ian Lynagh <igloo@earth.li>**20091104174945]
855[Fix #1185: restart the IO manager after fork()
856Simon Marlow <marlowsd@gmail.com>**20091103160540
857 Ignore-this: 6dc05464f1500104554637f4759738cc
858 
859 This is the libraries/base part of the patch; there is a corresponding
860 patch to GHC itself.
861 
862 The main change is that we now keep track of the IO manager's ThreadId
863 in a top-level MVar, and ensureIOManagerIsRunning checks whether a
864 previous IO manager thread is alive before starting one.  In the child
865 of fork(), we can hence call ensureIOManagerIsRunning to restart the
866 IO manager.
867]
868[improve the documentation for throwErrnoIfRetry
869Simon Marlow <marlowsd@gmail.com>**20091016112404
870 Ignore-this: b77275cacf730e15757946027168f63e
871]
872[Don't inline unpackFoldrCString ever
873simonpj@microsoft.com**20091029135350
874 Ignore-this: 85d672649b1b776efc7e97500b05d4f9
875]
876[Inline more default methods
877simonpj@microsoft.com**20091029135330
878 Ignore-this: 289c44b0afd6d5631c2a4e0664275ca9
879 
880 Namely Monad: (>>)
881        Eq:    (==), (/=)
882        Num:   (-), negate
883        Real:  quot, rem, div, mod, recip, (/), truncate
884        Float: (**), logBase, sqrt, tan, tanh
885]
886[Move error messages out of INLINEd default methods
887simonpj@microsoft.com**20091029135118
888 Ignore-this: 9e35dc947f94827a3529eb53a41575fd
889 
890 No need to duplicate the error generation!
891]
892[Exploit now-working default-method INLINE pragmas for Data.Bits
893simonpj@microsoft.com**20091029135041
894 Ignore-this: 8adf225f31ca7a3181ee087e9e4fe535
895 
896 * Add INLINE pragmas to default methods for class Bits
897 
898 * Remove redundant instance methods elsewhere, now that
899   the default method will do the job
900]
901[Tidy up and comment imports
902simonpj@microsoft.com**20091029134414
903 Ignore-this: bf2be31035de975d8995e988933cc940
904]
905[Inline foldr and (.) when applied to two arguments not three
906simonpj@microsoft.com**20091029134335
907 Ignore-this: fccb6f3e90e15f44cb465814be85ede2
908 
909 The new INLINE story is (by design) arity-sensitive, so we must
910 put fewer argument on the LHS for foldr and (.)
911]
912[dirUtils.c no longer available
913Malcolm.Wallace@cs.york.ac.uk**20091013093833]
914[Make hGetContents throw an exception if an error is encountered
915Simon Marlow <marlowsd@gmail.com>**20091012152955
916 Ignore-this: 9f7a7176193eab25c9daaacd9261f2de
917 
918 Strictly speaking this breaks Haskell 98 compatibility, which requires
919 hGetContents to just end the lazy stream silently if an error is
920 encountered.  However, for a few reasons we think it will make
921 everyone's life a bit easier if we make this change
922 
923  1. Errors will be a lot more common in GHC 6.12.1, in the form
924     of Unicode decoding errors.
925 
926  2. When Haskell 98 was designed, we didn't know how to throw
927     exceptions from inside lazy I/O, but now we do.
928 
929  3. If anyone is actually relying on the previous behaviour, their
930     code is arguably broken.
931]
932[Re-instate System.Console.Getopt for nhc98 builds.
933Malcolm.Wallace@cs.york.ac.uk**20091013092843
934 Although it was split out of base a while back, that change was
935 reverted for ghc soon afterwards, but nhc98 never noticed.
936]
937[Roll back "Another instance of nhc98's strange import semantics."
938Ian Lynagh <igloo@earth.li>**20091009185618
939 Fri Oct  9 14:50:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
940 GHC (correctly) warns about the unused import, which breaks the validate
941 build.
942]
943[Roll back "Cope with nhc98's (occasionally-strange) import semantics"
944Ian Lynagh <igloo@earth.li>**20091009184704
945 Fri Oct  9 14:43:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
946 GHC (correctly) warns about the unused import, which breaks the validate
947 build.
948]
949[It seems that nhc98 needs defaulting in Data.Fixed.
950Malcolm.Wallace@cs.york.ac.uk**20091009135242]
951[Another instance of nhc98's strange import semantics.
952Malcolm.Wallace@cs.york.ac.uk**20091009135051]
953[Make Data.Functor compatible with non-GHC compilers.
954Malcolm.Wallace@cs.york.ac.uk**20091009134821]
955[Cope with nhc98's (occasionally-strange) import semantics.
956Malcolm.Wallace@cs.york.ac.uk**20091009134351]
957[Fix gratuitous breakage of nhc98 in System.IO.
958Malcolm.Wallace@cs.york.ac.uk**20091009134001]
959[Fix gratuitous breakage of nhc98 in Control.Exception.Base.
960Malcolm.Wallace@cs.york.ac.uk**20091009133615]
961[Fix gratuitous breakage of non-GHC in Data.Fixed.
962Malcolm.Wallace@cs.york.ac.uk**20091009133330]
963[Fix gratuitous breakage for non-GHC in Data.Bits.
964Malcolm.Wallace@cs.york.ac.uk**20091009133257]
965[Use UTF-32LE instead of UTF32LE
966Simon Marlow <marlowsd@gmail.com>**20091006100207
967 Ignore-this: 7f881e36543d250ef848c9f60d67655a
968 The latter is not recognised by some iconv implementations.
969]
970[Strip any Byte Order Mark (BOM) from the front of decoded streams.
971Ben.Lippmeier@anu.edu.au*-20090930084229
972 Ignore-this: d0d0c3ae87b31d71ef1627c8e1786445
973 When decoding to UTF-32, Solaris iconv inserts a BOM at the front
974 of the stream, but Linux iconv doesn't.
975]
976[use UTF32BE/UTF32LE instead of UCS-4/UCS-4LE
977Simon Marlow <marlowsd@gmail.com>**20091005101554
978 Ignore-this: 2aef5e9bec421e714953b7aa1bdfc1b3
979]
980[Strip any Byte Order Mark (BOM) from the front of decoded streams.
981Ben.Lippmeier@anu.edu.au**20090930084229
982 Ignore-this: d0d0c3ae87b31d71ef1627c8e1786445
983 When decoding to UTF-32, Solaris iconv inserts a BOM at the front
984 of the stream, but Linux iconv doesn't.
985]
986[Add traceEvent :: String -> IO ()
987Simon Marlow <marlowsd@gmail.com>**20090925141257
988 Ignore-this: 8b1888bbf9682ffba13f815b6000e4b1
989 For emitting an event via the RTS tracing framework
990]
991[Fix the error message when flushing the read buffer of a non-seekable Handle
992Simon Marlow <marlowsd@gmail.com>**20090923090536
993 Ignore-this: 4342026df93759d99480f4e13f80a492
994]
995[Fix #3534: No need to flush the byte buffer when setting binary mode
996Simon Marlow <marlowsd@gmail.com>**20090923090445
997 Ignore-this: 625817ed7ae2c12291eb993a99dc640a
998]
999[Use let !y = x in .. x .. instead of seq in $! and evaluate (#2273)
1000Simon Marlow <marlowsd@gmail.com>**20090916140454]
1001[make some Applicative functions into methods, and split off Data.Functor (proposal #3335)
1002Ross Paterson <ross@soi.city.ac.uk>**20090915173109
1003 Ignore-this: a0cff4de6dfdbcbd56a66101bc4855a9
1004 
1005 The following functions
1006 
1007     (<$) :: Functor f => a -> f b -> f a
1008     (*>) :: Applicative f => f a -> f b -> f b
1009     (<*) :: Applicative f => f a -> f b -> f a
1010     some :: Alternative f => f a -> f [a]
1011     many :: Alternative f => f a -> f [a]
1012 
1013 are moved into the corresponding classes, with the existing implementations
1014 as default definitions.  This gives people creating instances the option of
1015 defining specialized implementations of these functions, though they should
1016 be equivalent to the default definitions.
1017 
1018 Although (<$) is now a method of the Functor class, it is hidden in the
1019 re-export by the Prelude, Control.Monad and Monad.  The new module
1020 Data.Functor exposes the full class, plus the function (<$>).  These are
1021 also re-exported by Control.Applicative.
1022]
1023[On Windows, use the console code page for text file encoding/decoding.
1024Judah Jacobson <judah.jacobson@gmail.com>**20090913022126
1025 Ignore-this: 86c2f2db8ef92b751599795d3195187b
1026 
1027 We keep all of the code page tables in the module
1028 GHC.IO.Encoding.CodePage.Table.  That file was generated automatically
1029 by running codepages/MakeTable.hs; more details are in the comments at the
1030 start of that script.
1031 
1032 Storing the lookup tables adds about 40KB to each statically linked executable;
1033 this only increases the size of a "hello world" program by about 7%.
1034 
1035 Currently we do not support double-byte encodings (Chinese/Japanese/Korean), since
1036 including those codepages would increase the table size to 400KB.  It will be
1037 straightforward to implement them once the work on library DLLs is finished.
1038]
1039[Fix "init" docs: the input list need not be finite. Fixes trac #3465
1040Ian Lynagh <igloo@earth.li>**20090911210437]
1041[Bump base version to 4.2.0.0
1042Ian Lynagh <igloo@earth.li>**20090911153913]
1043[Address #3310
1044Simon Marlow <marlowsd@gmail.com>**20090830152850
1045 Ignore-this: 40c7f7c171ee299a83092fd360a952b7
1046 
1047  - Rename BlockedOnDeadMVar   -> BlockedIndefinitelyOnMVar
1048  - Rename BlockedIndefinitely -> BlockedIndefinitelyOnSTM
1049  - instance Show BlockedIndefinitelyOnMVar is now
1050      "blocked indefinitely in an MVar operation"
1051  - instance Show BlockedIndefinitelyOnSTM is now
1052      "blocked indefinitely in an STM transaction"
1053 
1054 clients using Control.OldException will be unaffected (the new
1055 exceptions are mapped to the old names).  However, for base4-compat
1056 we'll need to make a version of catch/try that does a similar
1057 mapping.
1058]
1059[Fix unicode conversion for MSB architectures
1060Ben.Lippmeier@anu.edu.au**20090830130028
1061 This fixes the SPARC/Solaris build.
1062]
1063[Fix #3441: detect errors in partial sequences
1064Simon Marlow <marlowsd@gmail.com>**20090830075909
1065 Ignore-this: d12a75d95e0cae5eb1555266810ec281
1066]
1067[Fix hWaitForInput
1068Simon Marlow <marlowsd@gmail.com>**20090827152116
1069 Ignore-this: 2550e911f1a4d4357a5aa8d1764238ce
1070 It was erroneously waiting when there were bytes to decode waiting in
1071 the byte buffer.
1072]
1073[fix debugging code
1074Simon Marlow <marlowsd@gmail.com>**20090827150628
1075 Ignore-this: e1c82fdc19a22e247cd69ff6fa11921d
1076]
1077[Allow for configurable iconv include and library locations.
1078Matthias Kilian <kili@outback.escape.de>**20090826154406
1079 Ignore-this: be95fab611a5534cf184b508964ed498
1080 This should help to fix the build on OpenBSD.
1081]
1082[typo in comment
1083Simon Marlow <marlowsd@gmail.com>**20090826085252
1084 Ignore-this: 1903ee0f354157a6ed3871c100f6b1b9
1085]
1086[un-hide some modules from the Haddock docs
1087Simon Marlow <marlowsd@gmail.com>**20090825152457
1088 Ignore-this: dce6606f93cf977fb24ebe99082dfa62
1089]
1090[Apply fix for #1548, from squadette@gmail.com
1091Simon Marlow <marlowsd@gmail.com>**20090819120700
1092 Ignore-this: 31c237c46a6445f588ed4b8c51bb6231
1093]
1094[improvements to Data.Fixed: instances for Typeable and Data, more predefined types
1095Ashley Yakeley <ashley@semantic.org>**20090812055058
1096 Ignore-this: feeece36d5632f02a05d137d2a39ab78
1097]
1098[Fix "Cabal check" warnings
1099Ian Lynagh <igloo@earth.li>**20090811215856]
1100[Add a GHC.Constants module; fixes trac #3094
1101Ian Lynagh <igloo@earth.li>**20090809183252]
1102[Apply proposal #3393
1103Ian Lynagh <igloo@earth.li>**20090809134717
1104 Add openTempFileWithDefaultPermissions and
1105 openBinaryTempFileWithDefaultPermissions.
1106]
1107[Add some more C wrappers; patch from Krister Walfridsson
1108Ian Lynagh <igloo@earth.li>**20090807200631
1109 Fixes 21 testsuite errors on NetBSD 5.99.
1110]
1111[Fixing configure for autoconf 2.64
1112Alexander Dunlap <alexander.dunlap@gmail.com>**20090805060748
1113 Ignore-this: 992ab91ae3d68c12dbb265776e33e243
1114]
1115[add INLINE toList
1116Ross Paterson <ross@soi.city.ac.uk>**20090806142853
1117 Ignore-this: aba16aabb17d5dca44f15d188945680e
1118 
1119 In anticipation of the fixing of #2353.
1120]
1121[fix a copyright
1122Simon Marlow <marlowsd@gmail.com>**20090805134045
1123 Ignore-this: b0ffbdd38fbba121e8bcba37c4082a60
1124]
1125[Tweak the BufferedIO class to enable a memory-mapped file implementation
1126Simon Marlow <marlowsd@gmail.com>**20090805134036
1127 Ignore-this: ec67d7a0a6d977438deaa342503f77e0
1128 We have to eliminate the assumption that an empty write buffer can be
1129 constructed by setting the buffer pointers to zero: this isn't
1130 necessarily the case when the buffer corresponds to a memory-mapped
1131 file, or other in-memory device implementation.
1132]
1133[Deprecate Control.OldException
1134Ian Lynagh <igloo@earth.li>**20090804143910]
1135[Windows build fix, following RTS tidyup
1136Simon Marlow <marlowsd@gmail.com>**20090803131121
1137 Ignore-this: ce862fb91c2b234211a8757f98690778
1138]
1139[Updates to follow the RTS tidyup
1140Simon Marlow <marlowsd@gmail.com>**20090801220743
1141 Ignore-this: 6e92412df93a66c12d75344053d5634
1142 C functions like isDoubleNaN moved here (primFloat.c)
1143]
1144[Add integer-simple as a build option
1145Ian Lynagh <igloo@earth.li>**20090722013151]
1146[Use shift[LR]Integer in the Bits Integer instance
1147Ian Lynagh <igloo@earth.li>**20090721222440]
1148[depend directly on integer-gmp, rather than indirecting through integer
1149Ian Lynagh <igloo@earth.li>**20090721185228]
1150[Move the instances of Functor and Monad IO to GHC.Base, to avoid orphans
1151Simon Marlow <marlowsd@gmail.com>**20090722102130
1152 Ignore-this: a7d85ac0025d559674249de0108dbcf4
1153]
1154[move "instance Exception Dynamic" so it isn't an orphan
1155Simon Marlow <marlowsd@gmail.com>**20090721093854
1156 Ignore-this: 5ede91ecfec2112c91b699d4de87cd02
1157]
1158[Improve the index checking for array accesses; fixes #2120 #2669
1159Ian Lynagh <igloo@earth.li>**20090719153228
1160 As well as checking that offset we are reading is actually inside the
1161 array, we now also check that it is "in range" as defined by the Ix
1162 instance. This fixes confusing behaviour (#2120) and improves some error
1163 messages (#2669).
1164]
1165[Make chr say what its argument was, if it's a bad argument
1166Ian Lynagh <igloo@earth.li>**20090718151049]
1167[remove unused warning
1168Simon Marlow <marlowsd@gmail.com>**20090715124416
1169 Ignore-this: 31f613654089d0f4a44363946087b41e
1170]
1171[warning fix: -fno-implicit-prelude -> -XNoImplicitPrelude
1172Simon Marlow <marlowsd@gmail.com>**20090715122839
1173 Ignore-this: dc8957249731d5bcb71c01899e5adf2b
1174]
1175[Add hGetEncoding :: Handle -> IO (Maybe TextEncoding)
1176Simon Marlow <marlowsd@gmail.com>**20090715122519
1177 Ignore-this: 14c3eff996db062da1199739781e4708
1178 as suggested during the discussion on the libraries list
1179]
1180[Add more documentation to mkTextEncoding
1181Simon Marlow <marlowsd@gmail.com>**20090715122414
1182 Ignore-this: 97253b2624267df3a246a18121e8ea81
1183 noting that "//IGNORE" and "//TRANSLIT" suffixes can be used with GNU
1184 iconv.
1185]
1186[Add the utf8_bom codec
1187Simon Marlow <marlowsd@gmail.com>**20090715122257
1188 Ignore-this: 1c9396cd805201fe873a39382ced79c7
1189 as suggested during the discussion on the libraries list.
1190]
1191[Export Unicode and newline functionality from System.IO; update Haddock docs
1192Simon Marlow <marlowsd@gmail.com>**20090713113104
1193 Ignore-this: c3f017a555335aa55d106253393f72e2
1194]
1195[add a comment about the non-workingness of CHARBUF_UTF16
1196Simon Marlow <marlowsd@gmail.com>**20090707124406
1197 Ignore-this: 98d00411b68d688b3b4cffc9507b1f35
1198]
1199[Fix build on Windows
1200Ian Lynagh <igloo@earth.li>**20090711004351]
1201[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
1202Ian Lynagh <igloo@earth.li>**20090710204513]
1203[Use throwErrnoIfMinus1_ when calling getrusage
1204Ian Lynagh <igloo@earth.li>**20090710204221]
1205[Remove an unused import
1206Ian Lynagh <igloo@earth.li>**20090710153345]
1207[reportStackOverflow now returns IO ()
1208Ian Lynagh <igloo@earth.li>**20090710153257
1209 It used to do "return undefined" to return IO a.
1210]
1211[GHC.Conc.reportError now returns IO ()
1212Ian Lynagh <igloo@earth.li>**20090710152646
1213 It used to return IO a, by "return undefined".
1214]
1215[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
1216Ian Lynagh <igloo@earth.li>**20090710152526]
1217[Minor SampleVar refactoring
1218Ian Lynagh <igloo@earth.li>**20090710151438]
1219[Fix "warn-unused-do-bind" warnings in GHC/IO/Handle/Text.hs
1220Ian Lynagh <igloo@earth.li>**20090710122905]
1221[Fix some "warn-unused-do-bind" warnings where we just want to ignore the result
1222Ian Lynagh <igloo@earth.li>**20090710005638]
1223[Use the result of writeCharBuf in GHC/IO/Encoding/Latin1.hs too
1224Ian Lynagh <igloo@earth.li>**20090710004032]
1225[Minor code tidyups in GHC.Conc
1226Ian Lynagh <igloo@earth.li>**20090710003801]
1227[Fix "warn-unused-do-bind" warning in GHC.Conc
1228Ian Lynagh <igloo@earth.li>**20090710003530
1229 If we fail to communicate with the IO manager then we print a warning
1230 using debugErrLn from the ghc-prim package.
1231]
1232[Fix "warn-unused-do-bind" warnings in System.Posix.Internals
1233Ian Lynagh <igloo@earth.li>**20090709164546]
1234[Fix "warn-unused-do-bind" warnings where we really do want to ignore the result
1235Ian Lynagh <igloo@earth.li>**20090709163912]
1236[Add back imports needed on Windows
1237Ian Lynagh <igloo@earth.li>**20090707181924]
1238[Remove unused imports
1239Ian Lynagh <igloo@earth.li>**20090707115810]
1240[Remove unused imports from base
1241simonpj@microsoft.com**20090706111842
1242 Ignore-this: f9b5f353e3bb820f787c56d615b28765
1243 
1244 These unused imports are detected by the new unused-import code
1245 
1246]
1247[Use the result of writeCharBuf
1248Simon Marlow <marlowsd@gmail.com>**20090706133303
1249 Ignore-this: 52288dd559bf4c4f313df6197091d935
1250   
1251 This only makes a difference when CHARBUF_UTF16 is in use, which it
1252 normally isn't.  I suspect CHARBUF_UTF16 doesn't currently work for
1253 other reasons (CHARBUF_UTF16 was an experiment before I wrote the
1254 GHC.IO.Encoding.UTF* codecs), but this patch at least makes it
1255 slightly closer to working.
1256]
1257[Remove some cruft from Data.HashTable
1258Ian Lynagh <igloo@earth.li>**20090706181630]
1259[Add 'eof' to Text.ParserCombinators.ReadP
1260simonpj@microsoft.com**20090706111801
1261 Ignore-this: 2aea7b848e00c894761bc4011adaa95d
1262 
1263 Add a ReadP parser that succeeds at the end of input. Very useful!
1264 
1265]
1266[Don't export CLDouble for GHC; fixes trac #2793
1267Ian Lynagh <igloo@earth.li>**20090705155120
1268 We never really supported CLDouble (it was a plain old double underneath),
1269 and pretending that we do does more harm than good.
1270]
1271[a byte between 0x80 and 0xBF is illegal immediately (#3341)
1272Simon Marlow <marlowsd@gmail.com>**20090702081415
1273 Ignore-this: dc19ef59a1a21118d5a7dd38aa2f611c
1274]
1275[avoid a warning
1276Simon Marlow <marlowsd@gmail.com>**20090630084134
1277 Ignore-this: c92a45ee216faf01327feae9fe06d6e2
1278]
1279[Add a wrapper for libiconv.
1280Matthias Kilian <kili@outback.escape.de>**20090629183634
1281 Ignore-this: 23c6047c0d71b745b495cc223574a47f
1282]
1283[#include <sys/times.h> if we have it (should fix build problems)
1284Simon Marlow <marlowsd@gmail.com>**20090629085351
1285 Ignore-this: a35e93b37ca9595c73460243180f4b9d
1286]
1287[set binary mode for existing FDs on Windows (fixes some GHCi test failures)
1288Simon Marlow <marlowsd@gmail.com>**20090626120522
1289 Ignore-this: 580cf636e9c77d8427aff6861d089481
1290]
1291[Move directory-related stuff to the unix package
1292Simon Marlow <marlowsd@gmail.com>**20090625120325
1293 Ignore-this: b997b3cbce0a46ca87ad825bbdc0a411
1294 now that it isn't used on Windows any more.
1295]
1296[TAG 2009-06-25
1297Ian Lynagh <igloo@earth.li>**20090625160056]
1298Patch bundle hash:
1299586a88bd4ca14e137ec1dadcfcc89c8cd3073292