Ticket #4502: read-data-fixed.dpatch

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