Ticket #1951: tuple.dpatch

File tuple.dpatch, 48.4 KB (added by jmcarthur, 3 years ago)

patch to add a Monad instance for tuples with the same semantics as Writer

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