Ticket #4925: explicit_language_extensions.2.dpatch

File explicit_language_extensions.2.dpatch, 106.8 KB (added by basvandijk, 3 years ago)
Line 
11 patch for repository http://darcs.haskell.org/packages/base:
2
3Thu Jan 27 18:02:14 CET 2011  Bas van Dijk <v.dijk.bas@gmail.com>
4  * Use explicit language extensions & remove extension fields from base.cabal
5
6New patches:
7
8[Use explicit language extensions & remove extension fields from base.cabal
9Bas van Dijk <v.dijk.bas@gmail.com>**20110127170214
10 Ignore-this: 957b07a1fde4d4600786e98653787291
11] {
12hunk ./Control/Applicative.hs 1
13+{-# LANGUAGE CPP #-}
14+
15 -----------------------------------------------------------------------------
16 -- |
17 -- Module      :  Control.Applicative
18hunk ./Control/Category.hs 1
19+{-# LANGUAGE CPP #-}
20+
21 -----------------------------------------------------------------------------
22 -- |
23 -- Module      :  Control.Category
24hunk ./Control/Concurrent.hs 1
25+{-# LANGUAGE CPP
26+           , ForeignFunctionInterface
27+           , MagicHash
28+           , UnboxedTuples
29+           , ScopedTypeVariables
30+  #-}
31 {-# OPTIONS_GHC -fno-warn-unused-imports #-}
32hunk ./Control/Concurrent.hs 8
33+
34 -----------------------------------------------------------------------------
35 -- |
36 -- Module      :  Control.Concurrent
37hunk ./Control/Concurrent/Chan.hs 1
38+{-# LANGUAGE CPP #-}
39+
40 -----------------------------------------------------------------------------
41 -- |
42 -- Module      :  Control.Concurrent.Chan
43hunk ./Control/Concurrent/MVar.hs 1
44-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
45+{-# LANGUAGE CPP, NoImplicitPrelude #-}
46+
47 -----------------------------------------------------------------------------
48 -- |
49 -- Module      :  Control.Concurrent.MVar
50hunk ./Control/Concurrent/QSem.hs 1
51+{-# LANGUAGE CPP #-}
52+
53 -----------------------------------------------------------------------------
54 -- |
55 -- Module      :  Control.Concurrent.QSem
56hunk ./Control/Concurrent/QSemN.hs 1
57+{-# LANGUAGE CPP #-}
58+
59 -----------------------------------------------------------------------------
60 -- |
61 -- Module      :  Control.Concurrent.QSemN
62hunk ./Control/Concurrent/SampleVar.hs 1
63+{-# LANGUAGE CPP #-}
64+
65 -----------------------------------------------------------------------------
66 -- |
67 -- Module      :  Control.Concurrent.SampleVar
68hunk ./Control/Exception.hs 1
69-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
70+{-# LANGUAGE CPP, NoImplicitPrelude, ExistentialQuantification #-}
71 
72 -----------------------------------------------------------------------------
73 -- |
74hunk ./Control/Exception/Base.hs 1
75-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
76+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
77 
78 #include "Typeable.h"
79 
80hunk ./Control/Monad.hs 1
81-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
82+{-# LANGUAGE CPP, NoImplicitPrelude #-}
83+
84 -----------------------------------------------------------------------------
85 -- |
86 -- Module      :  Control.Monad
87hunk ./Control/Monad/Fix.hs 1
88+{-# LANGUAGE CPP #-}
89+
90 -----------------------------------------------------------------------------
91 -- |
92 -- Module      :  Control.Monad.Fix
93hunk ./Control/Monad/ST.hs 1
94+{-# LANGUAGE CPP #-}
95+
96 -----------------------------------------------------------------------------
97 -- |
98 -- Module      :  Control.Monad.ST
99hunk ./Control/Monad/ST/Lazy.hs 1
100+{-# LANGUAGE CPP, MagicHash, UnboxedTuples, Rank2Types #-}
101+
102 -----------------------------------------------------------------------------
103 -- |
104 -- Module      :  Control.Monad.ST.Lazy
105hunk ./Control/OldException.hs 1
106-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
107+{-# LANGUAGE CPP
108+           , NoImplicitPrelude
109+           , ForeignFunctionInterface
110+           , ExistentialQuantification
111+  #-}
112 
113 #include "Typeable.h"
114 
115hunk ./Data/Bits.hs 1
116-{-# LANGUAGE BangPatterns #-}
117-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
118+{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, MagicHash #-}
119+
120 -----------------------------------------------------------------------------
121 -- |
122 -- Module      :  Data.Bits
123hunk ./Data/Bool.hs 1
124-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
125+{-# LANGUAGE CPP, NoImplicitPrelude #-}
126+
127 -----------------------------------------------------------------------------
128 -- |
129 -- Module      :  Data.Bool
130hunk ./Data/Char.hs 1
131-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
132+{-# LANGUAGE CPP, NoImplicitPrelude #-}
133+
134 -----------------------------------------------------------------------------
135 -- |
136 -- Module      :  Data.Char
137hunk ./Data/Complex.hs 1
138+{-# LANGUAGE CPP, DeriveDataTypeable #-}
139+
140 -----------------------------------------------------------------------------
141 -- |
142 -- Module      :  Data.Complex
143hunk ./Data/Data.hs 1
144+{-# LANGUAGE CPP, Rank2Types, ScopedTypeVariables #-}
145+
146 -----------------------------------------------------------------------------
147 -- |
148 -- Module      :  Data.Data
149hunk ./Data/Dynamic.hs 1
150-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
151+{-# LANGUAGE CPP, NoImplicitPrelude #-}
152+
153 -----------------------------------------------------------------------------
154 -- |
155 -- Module      :  Data.Dynamic
156hunk ./Data/Either.hs 1
157-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
158+{-# LANGUAGE CPP, NoImplicitPrelude #-}
159+
160 -----------------------------------------------------------------------------
161 -- |
162 -- Module      :  Data.Either
163hunk ./Data/Eq.hs 1
164-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
165+{-# LANGUAGE CPP, NoImplicitPrelude #-}
166+
167 -----------------------------------------------------------------------------
168 -- |
169 -- Module      :  Data.Eq
170hunk ./Data/Fixed.hs 1
171+{-# LANGUAGE CPP #-}
172 {-# OPTIONS -Wall -fno-warn-unused-binds #-}
173 
174hunk ./Data/Fixed.hs 4
175+#ifndef __NHC__
176+{-# LANGUAGE DeriveDataTypeable #-}
177+#endif
178 -----------------------------------------------------------------------------
179 -- |
180 -- Module      :  Data.Fixed
181hunk ./Data/Foldable.hs 1
182+{-# LANGUAGE CPP #-}
183+
184 -----------------------------------------------------------------------------
185 -- |
186 -- Module      :  Data.Foldable
187hunk ./Data/Functor.hs 1
188+{-# LANGUAGE CPP #-}
189+
190 -----------------------------------------------------------------------------
191 -- |
192 -- Module      :  Data.Functor
193hunk ./Data/HashTable.hs 1
194-{-# OPTIONS_GHC -XNoImplicitPrelude -funbox-strict-fields -fno-warn-name-shadowing #-}
195+{-# LANGUAGE CPP, NoImplicitPrelude #-}
196+{-# OPTIONS_GHC -funbox-strict-fields -fno-warn-name-shadowing #-}
197 
198 -----------------------------------------------------------------------------
199 -- |
200hunk ./Data/IORef.hs 1
201-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
202+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash, UnboxedTuples #-}
203+
204 -----------------------------------------------------------------------------
205 -- |
206 -- Module      :  Data.IORef
207hunk ./Data/Int.hs 1
208-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
209+{-# LANGUAGE CPP, NoImplicitPrelude #-}
210+
211 -----------------------------------------------------------------------------
212 -- |
213 -- Module      :  Data.Int
214hunk ./Data/Ix.hs 1
215+{-# LANGUAGE CPP #-}
216+
217 -----------------------------------------------------------------------------
218 -- |
219 -- Module      :  Data.Ix
220hunk ./Data/List.hs 1
221-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
222+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
223+
224 -----------------------------------------------------------------------------
225 -- |
226 -- Module      :  Data.List
227hunk ./Data/Maybe.hs 1
228-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
229+{-# LANGUAGE CPP, NoImplicitPrelude #-}
230+
231 -----------------------------------------------------------------------------
232 -- |
233 -- Module      :  Data.Maybe
234hunk ./Data/Monoid.hs 1
235-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
236+{-# LANGUAGE CPP, NoImplicitPrelude #-}
237+
238 -----------------------------------------------------------------------------
239 -- |
240 -- Module      :  Data.Monoid
241hunk ./Data/Ord.hs 1
242-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
243+{-# LANGUAGE CPP, NoImplicitPrelude #-}
244+
245 -----------------------------------------------------------------------------
246 -- |
247 -- Module      :  Data.Ord
248hunk ./Data/Ratio.hs 1
249+{-# LANGUAGE CPP #-}
250+
251 -----------------------------------------------------------------------------
252 -- |
253 -- Module      :  Data.Ratio
254hunk ./Data/STRef.hs 1
255+{-# LANGUAGE CPP #-}
256+
257 -----------------------------------------------------------------------------
258 -- |
259 -- Module      :  Data.STRef
260hunk ./Data/String.hs 1
261-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
262+{-# LANGUAGE CPP, NoImplicitPrelude, FlexibleInstances #-}
263+
264 -----------------------------------------------------------------------------
265 -- |
266 -- Module      :  Data.String
267hunk ./Data/Traversable.hs 1
268+{-# LANGUAGE CPP #-}
269+
270 -----------------------------------------------------------------------------
271 -- |
272 -- Module      :  Data.Traversable
273hunk ./Data/Tuple.hs 1
274-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
275+{-# LANGUAGE CPP, NoImplicitPrelude #-}
276 {-# OPTIONS_GHC -fno-warn-unused-imports #-}
277 -- XXX -fno-warn-unused-imports needed for the GHC.Tuple import below. Sigh.
278 -----------------------------------------------------------------------------
279hunk ./Data/Typeable.hs 1
280-{-# OPTIONS_GHC -XNoImplicitPrelude -XOverlappingInstances -funbox-strict-fields #-}
281+{-# LANGUAGE CPP
282+           , NoImplicitPrelude
283+           , OverlappingInstances
284+           , ScopedTypeVariables
285+           , ForeignFunctionInterface
286+           , FlexibleInstances
287+  #-}
288+{-# OPTIONS_GHC -funbox-strict-fields #-}
289 
290 -- The -XOverlappingInstances flag allows the user to over-ride
291 -- the instances for Typeable given here.  In particular, we provide an instance
292hunk ./Data/Typeable.hs-boot 1
293-
294-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
295+{-# LANGUAGE NoImplicitPrelude #-}
296 
297 module Data.Typeable where
298 
299hunk ./Data/Unique.hs 1
300+{-# LANGUAGE CPP #-}
301+
302+#ifdef __GLASGOW_HASKELL__
303+{-# LANGUAGE MagicHash, DeriveDataTypeable #-}
304+#endif
305+
306 -----------------------------------------------------------------------------
307 -- |
308 -- Module      :  Data.Unique
309hunk ./Data/Version.hs 1
310+{-# LANGUAGE CPP, DeriveDataTypeable #-}
311+
312 -----------------------------------------------------------------------------
313 -- |
314 -- Module      :  Data.Version
315hunk ./Data/Word.hs 1
316-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
317+{-# LANGUAGE CPP, NoImplicitPrelude #-}
318+
319 -----------------------------------------------------------------------------
320 -- |
321 -- Module      :  Data.Word
322hunk ./Debug/Trace.hs 1
323+{-# LANGUAGE CPP, ForeignFunctionInterface #-}
324+
325 -----------------------------------------------------------------------------
326 -- |
327 -- Module      :  Debug.Trace
328hunk ./Foreign.hs 1
329-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
330+{-# LANGUAGE NoImplicitPrelude #-}
331+
332 -----------------------------------------------------------------------------
333 -- |
334 -- Module      :  Foreign
335hunk ./Foreign/C.hs 1
336-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
337+{-# LANGUAGE NoImplicitPrelude #-}
338+
339 -----------------------------------------------------------------------------
340 -- |
341 -- Module      :  Foreign.C
342hunk ./Foreign/C/Error.hs 1
343-{-# OPTIONS_GHC -XNoImplicitPrelude -#include "HsBase.h" #-}
344+{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-}
345+{-# OPTIONS_GHC -#include "HsBase.h" #-}
346+
347 -----------------------------------------------------------------------------
348 -- |
349 -- Module      :  Foreign.C.Error
350hunk ./Foreign/C/String.hs 1
351-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
352+{-# LANGUAGE CPP, NoImplicitPrelude #-}
353+
354 -----------------------------------------------------------------------------
355 -- |
356 -- Module      :  Foreign.C.String
357hunk ./Foreign/C/Types.hs 1
358-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
359+{-# LANGUAGE CPP
360+           , NoImplicitPrelude
361+           , MagicHash
362+           , GeneralizedNewtypeDeriving
363+  #-}
364 {-# OPTIONS_GHC -fno-warn-unused-binds #-}
365 -- XXX -fno-warn-unused-binds stops us warning about unused constructors,
366 -- but really we should just remove them if we don't want them
367hunk ./Foreign/C/Types.hs 9
368+
369 -----------------------------------------------------------------------------
370 -- |
371 -- Module      :  Foreign.C.Types
372hunk ./Foreign/Concurrent.hs 1
373-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
374+{-# LANGUAGE CPP, NoImplicitPrelude #-}
375+
376 -----------------------------------------------------------------------------
377 -- |
378 -- Module      :  Foreign.Concurrent
379hunk ./Foreign/ForeignPtr.hs 1
380-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
381+{-# LANGUAGE CPP, NoImplicitPrelude #-}
382+
383 -----------------------------------------------------------------------------
384 -- |
385 -- Module      :  Foreign.ForeignPtr
386hunk ./Foreign/Marshal.hs 1
387-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
388+{-# LANGUAGE CPP, NoImplicitPrelude #-}
389+
390 -----------------------------------------------------------------------------
391 -- |
392 -- Module      :  Foreign.Marshal
393hunk ./Foreign/Marshal/Alloc.hs 1
394-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
395+{-# LANGUAGE CPP
396+           , NoImplicitPrelude
397+           , MagicHash
398+           , UnboxedTuples
399+           , ForeignFunctionInterface
400+  #-}
401+
402 -----------------------------------------------------------------------------
403 -- |
404 -- Module      :  Foreign.Marshal.Alloc
405hunk ./Foreign/Marshal/Array.hs 1
406-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
407+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
408+
409 -----------------------------------------------------------------------------
410 -- |
411 -- Module      :  Foreign.Marshal.Array
412hunk ./Foreign/Marshal/Error.hs 1
413-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
414+{-# LANGUAGE CPP, NoImplicitPrelude #-}
415+
416 -----------------------------------------------------------------------------
417 -- |
418 -- Module      :  Foreign.Marshal.Error
419hunk ./Foreign/Marshal/Pool.hs 1
420-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
421+{-# LANGUAGE CPP, NoImplicitPrelude #-}
422+
423 --------------------------------------------------------------------------------
424 -- |
425 -- Module      :  Foreign.Marshal.Pool
426hunk ./Foreign/Marshal/Utils.hs 1
427-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
428+{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-}
429+
430 -----------------------------------------------------------------------------
431 -- |
432 -- Module      :  Foreign.Marshal.Utils
433hunk ./Foreign/Ptr.hs 1
434-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
435+{-# LANGUAGE CPP
436+           , NoImplicitPrelude
437+           , ForeignFunctionInterface
438+           , MagicHash
439+           , GeneralizedNewtypeDeriving
440+  #-}
441+
442 -----------------------------------------------------------------------------
443 -- |
444 -- Module      :  Foreign.Ptr
445hunk ./Foreign/StablePtr.hs 1
446-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
447+{-# LANGUAGE CPP, NoImplicitPrelude #-}
448+
449 -----------------------------------------------------------------------------
450 -- |
451 -- Module      :  Foreign.StablePtr
452hunk ./Foreign/Storable.hs 1
453-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
454+{-# LANGUAGE CPP, NoImplicitPrelude, ScopedTypeVariables #-}
455+
456 -----------------------------------------------------------------------------
457 -- |
458 -- Module      :  Foreign.Storable
459hunk ./GHC/Arr.lhs 2
460 \begin{code}
461+{-# LANGUAGE NoImplicitPrelude, NoBangPatterns, MagicHash, UnboxedTuples #-}
462 {-# OPTIONS_GHC -funbox-strict-fields #-}
463hunk ./GHC/Arr.lhs 4
464-{-# LANGUAGE NoImplicitPrelude, NoBangPatterns #-}
465 {-# OPTIONS_HADDOCK hide #-}
466hunk ./GHC/Arr.lhs 5
467+
468 -----------------------------------------------------------------------------
469 -- |
470 -- Module      :  GHC.Arr
471hunk ./GHC/Base.lhs 65
472 Other Prelude modules are much easier with fewer complex dependencies.
473 
474 \begin{code}
475-{-# LANGUAGE BangPatterns #-}
476-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
477+{-# LANGUAGE CPP
478+           , NoImplicitPrelude
479+           , BangPatterns
480+           , ExplicitForAll
481+           , MagicHash
482+           , UnboxedTuples
483+           , ExistentialQuantification
484+           , Rank2Types
485+  #-}
486 -- -fno-warn-orphans is needed for things like:
487 -- Orphan rule: "x# -# x#" ALWAYS forall x# :: Int# -# x# x# = 0
488 {-# OPTIONS_GHC -fno-warn-orphans #-}
489hunk ./GHC/Base.lhs 78
490 {-# OPTIONS_HADDOCK hide #-}
491+
492 -----------------------------------------------------------------------------
493 -- |
494 -- Module      :  GHC.Base
495hunk ./GHC/Classes.hs 2
496 
497-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
498+{-# LANGUAGE NoImplicitPrelude, MagicHash, StandaloneDeriving #-}
499 {-# OPTIONS_GHC -fno-warn-unused-imports #-}
500 -- XXX -fno-warn-unused-imports needed for the GHC.Tuple import below. Sigh.
501 {-# OPTIONS_HADDOCK hide #-}
502hunk ./GHC/Conc.lhs 2
503 \begin{code}
504-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
505+{-# LANGUAGE CPP, NoImplicitPrelude #-}
506 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
507 {-# OPTIONS_HADDOCK not-home #-}
508hunk ./GHC/Conc.lhs 5
509+
510 -----------------------------------------------------------------------------
511 -- |
512 -- Module      :  GHC.Conc
513hunk ./GHC/Conc/IO.hs 1
514-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
515+{-# LANGUAGE CPP
516+           , NoImplicitPrelude
517+           , MagicHash
518+           , UnboxedTuples
519+           , ForeignFunctionInterface
520+  #-}
521 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
522 {-# OPTIONS_HADDOCK not-home #-}
523hunk ./GHC/Conc/IO.hs 9
524+
525 -----------------------------------------------------------------------------
526 -- |
527 -- Module      :  GHC.Conc.IO
528hunk ./GHC/Conc/Signal.hs 1
529-{-# LANGUAGE NoImplicitPrelude #-}
530+{-# LANGUAGE NoImplicitPrelude, ForeignFunctionInterface #-}
531 
532 module GHC.Conc.Signal
533         ( Signal
534hunk ./GHC/Conc/Sync.lhs 2
535 \begin{code}
536-{-# LANGUAGE BangPatterns #-}
537-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
538+{-# LANGUAGE CPP
539+           , NoImplicitPrelude
540+           , BangPatterns
541+           , MagicHash
542+           , UnboxedTuples
543+           , UnliftedFFITypes
544+           , ForeignFunctionInterface
545+           , DeriveDataTypeable
546+  #-}
547 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
548 {-# OPTIONS_HADDOCK not-home #-}
549hunk ./GHC/Conc/Sync.lhs 13
550+
551 -----------------------------------------------------------------------------
552 -- |
553 -- Module      :  GHC.Conc.Sync
554hunk ./GHC/Conc/Windows.hs 1
555-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
556+{-# LANGUAGE NoImplicitPrelude #-}
557 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
558 {-# OPTIONS_HADDOCK not-home #-}
559hunk ./GHC/Conc/Windows.hs 4
560+
561 -----------------------------------------------------------------------------
562 -- |
563 -- Module      :  GHC.Conc.Windows
564hunk ./GHC/ConsoleHandler.hs 1
565-{-# OPTIONS_GHC -cpp #-}
566+{-# LANGUAGE CPP #-}
567+
568 -----------------------------------------------------------------------------
569 -- |
570 -- Module      :  GHC.ConsoleHandler
571hunk ./GHC/Constants.hs 1
572+{-# LANGUAGE CPP #-}
573 
574 module GHC.Constants where
575 
576hunk ./GHC/Desugar.hs 1
577+{-# LANGUAGE CPP
578+           , NoImplicitPrelude
579+           , Rank2Types
580+           , ExistentialQuantification
581+  #-}
582+
583 -----------------------------------------------------------------------------
584 -- |
585 -- Module      :  GHC.Desugar
586hunk ./GHC/Enum.lhs 2
587 \begin{code}
588-{-# LANGUAGE BangPatterns #-}
589-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
590+{-# LANGUAGE NoImplicitPrelude, BangPatterns, MagicHash #-}
591 {-# OPTIONS_HADDOCK hide #-}
592 -----------------------------------------------------------------------------
593 -- |
594hunk ./GHC/Environment.hs 1
595+{-# LANGUAGE ForeignFunctionInterface #-}
596 
597 module GHC.Environment (getFullArgs) where
598 
599hunk ./GHC/Err.lhs 2
600 \begin{code}
601-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
602+{-# LANGUAGE CPP, NoImplicitPrelude #-}
603 {-# OPTIONS_HADDOCK hide #-}
604hunk ./GHC/Err.lhs 4
605+
606 -----------------------------------------------------------------------------
607 -- |
608 -- Module      :  GHC.Err
609hunk ./GHC/Err.lhs-boot 2
610 \begin{code}
611-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
612+{-# LANGUAGE NoImplicitPrelude #-}
613+
614 ---------------------------------------------------------------------------
615 --                  Ghc.Err.hs-boot
616 ---------------------------------------------------------------------------
617hunk ./GHC/Exception.lhs 2
618 \begin{code}
619-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
620+{-# LANGUAGE NoImplicitPrelude
621+           , ExistentialQuantification
622+           , MagicHash
623+           , DeriveDataTypeable
624+  #-}
625 {-# OPTIONS_HADDOCK hide #-}
626 -----------------------------------------------------------------------------
627 -- |
628hunk ./GHC/Exts.hs 1
629+{-# LANGUAGE MagicHash, UnboxedTuples, DeriveDataTypeable #-}
630+
631 -----------------------------------------------------------------------------
632 -- |
633 -- Module      :  GHC.Exts
634hunk ./GHC/Float.lhs 2
635 \begin{code}
636-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
637+{-# LANGUAGE CPP
638+           , NoImplicitPrelude
639+           , MagicHash
640+           , UnboxedTuples
641+           , ForeignFunctionInterface
642+  #-}
643 -- We believe we could deorphan this module, by moving lots of things
644 -- around, but we haven't got there yet:
645 {-# OPTIONS_GHC -fno-warn-orphans #-}
646hunk ./GHC/Float.lhs 12
647 {-# OPTIONS_HADDOCK hide #-}
648+
649 -----------------------------------------------------------------------------
650 -- |
651 -- Module      :  GHC.Float
652hunk ./GHC/ForeignPtr.hs 1
653-{-# LANGUAGE BangPatterns #-}
654-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
655+{-# LANGUAGE CPP
656+           , NoImplicitPrelude
657+           , BangPatterns
658+           , MagicHash
659+           , UnboxedTuples
660+  #-}
661 {-# OPTIONS_HADDOCK hide #-}
662hunk ./GHC/ForeignPtr.hs 8
663+
664 -----------------------------------------------------------------------------
665 -- |
666 -- Module      :  GHC.ForeignPtr
667hunk ./GHC/IO.hs 1
668+{-# LANGUAGE NoImplicitPrelude
669+           , BangPatterns
670+           , RankNTypes
671+           , MagicHash
672+           , UnboxedTuples
673+  #-}
674 {-# OPTIONS_GHC -funbox-strict-fields #-}
675hunk ./GHC/IO.hs 8
676-{-# LANGUAGE NoImplicitPrelude, BangPatterns, RankNTypes #-}
677 {-# OPTIONS_HADDOCK hide #-}
678 -----------------------------------------------------------------------------
679 -- |
680hunk ./GHC/IO.hs-boot 1
681+{-# LANGUAGE NoImplicitPrelude #-}
682+
683 module GHC.IO where
684 
685 import GHC.Types
686hunk ./GHC/IO/Buffer.hs 1
687-{-# OPTIONS_GHC  -XNoImplicitPrelude -funbox-strict-fields #-}
688+{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-}
689+{-# OPTIONS_GHC -funbox-strict-fields #-}
690+
691 -----------------------------------------------------------------------------
692 -- |
693 -- Module      :  GHC.IO.Buffer
694hunk ./GHC/IO/BufferedIO.hs 1
695-{-# OPTIONS_GHC  -XNoImplicitPrelude -funbox-strict-fields #-}
696+{-# LANGUAGE NoImplicitPrelude #-}
697+{-# OPTIONS_GHC -funbox-strict-fields #-}
698+
699 -----------------------------------------------------------------------------
700 -- |
701 -- Module      :  GHC.IO.BufferedIO
702hunk ./GHC/IO/Device.hs 1
703-{-# OPTIONS_GHC -XNoImplicitPrelude -XBangPatterns #-}
704+{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns #-}
705+
706 -----------------------------------------------------------------------------
707 -- |
708 -- Module      :  GHC.IO.Device
709hunk ./GHC/IO/Encoding.hs 1
710-{-# OPTIONS_GHC -XNoImplicitPrelude -funbox-strict-fields #-}
711+{-# LANGUAGE CPP, NoImplicitPrelude #-}
712+{-# OPTIONS_GHC -funbox-strict-fields #-}
713+
714 -----------------------------------------------------------------------------
715 -- |
716 -- Module      :  GHC.IO.Encoding
717hunk ./GHC/IO/Encoding/CodePage.hs 1
718-{-# LANGUAGE BangPatterns #-}
719+{-# LANGUAGE CPP, BangPatterns #-}
720 module GHC.IO.Encoding.CodePage(
721 #if !defined(mingw32_HOST_OS)
722  ) where
723hunk ./GHC/IO/Encoding/Iconv.hs 1
724-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
725+{-# LANGUAGE CPP
726+           , NoImplicitPrelude
727+           , ForeignFunctionInterface
728+           , NondecreasingIndentation
729+  #-}
730+
731 -----------------------------------------------------------------------------
732 -- |
733 -- Module      :  GHC.IO.Encoding.Iconv
734hunk ./GHC/IO/Encoding/Latin1.hs 1
735-{-# OPTIONS_GHC  -XNoImplicitPrelude -funbox-strict-fields #-}
736-{-# LANGUAGE BangPatterns #-}
737+{-# LANGUAGE NoImplicitPrelude
738+           , BangPatterns
739+           , NondecreasingIndentation
740+  #-}
741+{-# OPTIONS_GHC  -funbox-strict-fields #-}
742+
743 -----------------------------------------------------------------------------
744 -- |
745 -- Module      :  GHC.IO.Encoding.Latin1
746hunk ./GHC/IO/Encoding/Types.hs 1
747-{-# OPTIONS_GHC -XNoImplicitPrelude -funbox-strict-fields #-}
748+{-# LANGUAGE NoImplicitPrelude, ExistentialQuantification #-}
749+{-# OPTIONS_GHC -funbox-strict-fields #-}
750+
751 -----------------------------------------------------------------------------
752 -- |
753 -- Module      :  GHC.IO.Encoding.Types
754hunk ./GHC/IO/Encoding/UTF16.hs 1
755-{-# OPTIONS_GHC  -XNoImplicitPrelude -funbox-strict-fields #-}
756-{-# LANGUAGE BangPatterns #-}
757+{-# LANGUAGE CPP
758+           , NoImplicitPrelude
759+           , BangPatterns
760+           , NondecreasingIndentation
761+           , MagicHash
762+  #-}
763+{-# OPTIONS_GHC  -funbox-strict-fields #-}
764+
765 -----------------------------------------------------------------------------
766 -- |
767 -- Module      :  GHC.IO.Encoding.UTF16
768hunk ./GHC/IO/Encoding/UTF32.hs 1
769-{-# OPTIONS_GHC  -XNoImplicitPrelude -funbox-strict-fields #-}
770-{-# LANGUAGE BangPatterns #-}
771+{-# LANGUAGE NoImplicitPrelude
772+           , BangPatterns
773+           , NondecreasingIndentation
774+           , MagicHash
775+  #-}
776+{-# OPTIONS_GHC  -funbox-strict-fields #-}
777+
778 -----------------------------------------------------------------------------
779 -- |
780 -- Module      :  GHC.IO.Encoding.UTF32
781hunk ./GHC/IO/Encoding/UTF8.hs 1
782-{-# OPTIONS_GHC  -XNoImplicitPrelude -funbox-strict-fields #-}
783-{-# LANGUAGE BangPatterns #-}
784+{-# LANGUAGE NoImplicitPrelude
785+           , BangPatterns
786+           , NondecreasingIndentation
787+           , MagicHash
788+  #-}
789+{-# OPTIONS_GHC -funbox-strict-fields #-}
790+
791 -----------------------------------------------------------------------------
792 -- |
793 -- Module      :  GHC.IO.Encoding.UTF8
794hunk ./GHC/IO/Exception.hs 1
795-{-# OPTIONS_GHC -XNoImplicitPrelude -funbox-strict-fields #-}
796+{-# LANGUAGE NoImplicitPrelude, DeriveDataTypeable, MagicHash #-}
797+{-# OPTIONS_GHC -funbox-strict-fields #-}
798 {-# OPTIONS_HADDOCK hide #-}
799 -----------------------------------------------------------------------------
800 -- |
801hunk ./GHC/IO/Exception.hs-boot 1
802-{-# OPTIONS -fno-implicit-prelude #-}
803+{-# LANGUAGE NoImplicitPrelude #-}
804 module GHC.IO.Exception where
805 
806 import GHC.Base
807hunk ./GHC/IO/FD.hs 1
808-{-# OPTIONS_GHC -XNoImplicitPrelude -XBangPatterns -fno-warn-identities #-}
809+{-# LANGUAGE CPP
810+           , NoImplicitPrelude
811+           , BangPatterns
812+           , ForeignFunctionInterface
813+           , DeriveDataTypeable
814+  #-}
815+{-# OPTIONS_GH -fno-warn-identities #-}
816 -- Whether there are identities depends on the platform
817 {-# OPTIONS_HADDOCK hide #-}
818hunk ./GHC/IO/FD.hs 10
819+
820 -----------------------------------------------------------------------------
821 -- |
822 -- Module      :  GHC.IO.FD
823hunk ./GHC/IO/Handle.hs 1
824+{-# LANGUAGE CPP
825+           , NoImplicitPrelude
826+           , RecordWildCards
827+           , NondecreasingIndentation
828+  #-}
829 {-# OPTIONS_GHC -fno-warn-unused-matches #-}
830hunk ./GHC/IO/Handle.hs 7
831-{-# LANGUAGE NoImplicitPrelude, RecordWildCards #-}
832 
833 -----------------------------------------------------------------------------
834 -- |
835hunk ./GHC/IO/Handle.hs-boot 1
836-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
837+{-# LANGUAGE NoImplicitPrelude #-}
838 
839 module GHC.IO.Handle where
840 
841hunk ./GHC/IO/Handle/FD.hs 1
842-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
843+{-# LANGUAGE CPP, NoImplicitPrelude #-}
844+
845 -----------------------------------------------------------------------------
846 -- |
847 -- Module      :  GHC.IO.Handle.FD
848hunk ./GHC/IO/Handle/FD.hs-boot 1
849-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
850+{-# LANGUAGE NoImplicitPrelude #-}
851 module GHC.IO.Handle.FD where
852 
853 import GHC.IO.Handle.Types
854hunk ./GHC/IO/Handle/Internals.hs 1
855+{-# LANGUAGE NoImplicitPrelude
856+           , RecordWildCards
857+           , BangPatterns
858+           , PatternGuards
859+           , NondecreasingIndentation
860+           , Rank2Types
861+  #-}
862 {-# OPTIONS_GHC -fno-warn-unused-matches #-}
863 {-# OPTIONS_GHC -fno-warn-name-shadowing #-}
864 {-# OPTIONS_HADDOCK hide #-}
865hunk ./GHC/IO/Handle/Internals.hs 11
866-{-# LANGUAGE NoImplicitPrelude, RecordWildCards, BangPatterns #-}
867 
868 -----------------------------------------------------------------------------
869 -- |
870hunk ./GHC/IO/Handle/Text.hs 1
871+{-# LANGUAGE CPP
872+           , NoImplicitPrelude
873+           , RecordWildCards
874+           , BangPatterns
875+           , NondecreasingIndentation
876+           , MagicHash
877+           , ForeignFunctionInterface
878+  #-}
879 {-# OPTIONS_GHC -fno-warn-name-shadowing #-}
880 {-# OPTIONS_GHC -fno-warn-unused-matches #-}
881 {-# OPTIONS_HADDOCK hide #-}
882hunk ./GHC/IO/Handle/Text.hs 12
883-{-# LANGUAGE NoImplicitPrelude, RecordWildCards, BangPatterns #-}
884 
885 -----------------------------------------------------------------------------
886 -- |
887hunk ./GHC/IO/Handle/Types.hs 1
888-{-# OPTIONS_GHC  -XNoImplicitPrelude -funbox-strict-fields #-}
889+{-# LANGUAGE CPP
890+           , NoImplicitPrelude
891+           , ExistentialQuantification
892+           , DeriveDataTypeable
893+  #-}
894+{-# OPTIONS_GHC -funbox-strict-fields #-}
895 {-# OPTIONS_HADDOCK hide #-}
896hunk ./GHC/IO/Handle/Types.hs 8
897+
898 -----------------------------------------------------------------------------
899 -- |
900 -- Module      :  GHC.IO.Handle.Types
901hunk ./GHC/IO/IOMode.hs 1
902-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
903+{-# LANGUAGE NoImplicitPrelude #-}
904 {-# OPTIONS_HADDOCK hide #-}
905 -----------------------------------------------------------------------------
906 -- |
907hunk ./GHC/IOArray.hs 1
908-{-# OPTIONS_GHC -XNoImplicitPrelude -funbox-strict-fields #-}
909+{-# LANGUAGE NoImplicitPrelude #-}
910+{-# OPTIONS_GHC -funbox-strict-fields #-}
911 {-# OPTIONS_HADDOCK hide #-}
912 -----------------------------------------------------------------------------
913 -- |
914hunk ./GHC/IOBase.hs 1
915+{-# LANGUAGE DeriveDataTypeable #-}
916 {-# OPTIONS_HADDOCK hide #-}
917hunk ./GHC/IOBase.hs 3
918+
919 -----------------------------------------------------------------------------
920 -- |
921 -- Module      :  GHC.IOBase
922hunk ./GHC/IORef.hs 1
923-{-# OPTIONS_GHC -XNoImplicitPrelude -funbox-strict-fields #-}
924+{-# LANGUAGE NoImplicitPrelude, MagicHash #-}
925+{-# OPTIONS_GHC -funbox-strict-fields #-}
926 {-# OPTIONS_HADDOCK hide #-}
927hunk ./GHC/IORef.hs 4
928+
929 -----------------------------------------------------------------------------
930 -- |
931 -- Module      :  GHC.IORef
932hunk ./GHC/Int.hs 1
933-{-# LANGUAGE BangPatterns #-}
934-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
935+{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, MagicHash #-}
936 {-# OPTIONS_HADDOCK hide #-}
937 -----------------------------------------------------------------------------
938 -- |
939hunk ./GHC/List.lhs 2
940 \begin{code}
941-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
942+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
943 {-# OPTIONS_HADDOCK hide #-}
944hunk ./GHC/List.lhs 4
945+
946 -----------------------------------------------------------------------------
947 -- |
948 -- Module      :  GHC.List
949hunk ./GHC/MVar.hs 1
950-{-# OPTIONS_GHC -XNoImplicitPrelude -funbox-strict-fields #-}
951+{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples #-}
952+{-# OPTIONS_GHC -funbox-strict-fields #-}
953 {-# OPTIONS_HADDOCK hide #-}
954hunk ./GHC/MVar.hs 4
955+
956 -----------------------------------------------------------------------------
957 -- |
958 -- Module      :  GHC.MVar
959hunk ./GHC/Num.lhs 2
960 \begin{code}
961-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
962+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash, UnboxedTuples #-}
963 -- We believe we could deorphan this module, by moving lots of things
964 -- around, but we haven't got there yet:
965 {-# OPTIONS_GHC -fno-warn-orphans #-}
966hunk ./GHC/PArr.hs 1
967+{-# LANGUAGE CPP, ParallelArrays, MagicHash, UnboxedTuples #-}
968 {-# OPTIONS_GHC -funbox-strict-fields #-}
969 {-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
970hunk ./GHC/PArr.hs 4
971-{-# LANGUAGE ParallelArrays #-}
972 
973 -----------------------------------------------------------------------------
974 -- |
975hunk ./GHC/Pack.lhs 2
976 \begin{code}
977-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
978+{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples #-}
979 {-# OPTIONS_HADDOCK hide #-}
980hunk ./GHC/Pack.lhs 4
981+
982 -----------------------------------------------------------------------------
983 -- |
984 -- Module      :  GHC.Pack
985hunk ./GHC/Ptr.lhs 2
986 \begin{code}
987-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
988+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
989 {-# OPTIONS_HADDOCK hide #-}
990hunk ./GHC/Ptr.lhs 4
991+
992 -----------------------------------------------------------------------------
993 -- |
994 -- Module      :  GHC.Ptr
995hunk ./GHC/Read.lhs 2
996 \begin{code}
997-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
998+{-# LANGUAGE CPP, NoImplicitPrelude #-}
999 {-# OPTIONS_HADDOCK hide #-}
1000hunk ./GHC/Read.lhs 4
1001+
1002 -----------------------------------------------------------------------------
1003 -- |
1004 -- Module      :  GHC.Read
1005hunk ./GHC/Real.lhs 2
1006 \begin{code}
1007-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1008+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash, UnboxedTuples #-}
1009 {-# OPTIONS_HADDOCK hide #-}
1010 -----------------------------------------------------------------------------
1011 -- |
1012hunk ./GHC/ST.lhs 2
1013 \begin{code}
1014-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1015+{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples, Rank2Types #-}
1016 {-# OPTIONS_HADDOCK hide #-}
1017 -----------------------------------------------------------------------------
1018 -- |
1019hunk ./GHC/STRef.lhs 2
1020 \begin{code}
1021-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1022+{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples #-}
1023 {-# OPTIONS_HADDOCK hide #-}
1024hunk ./GHC/STRef.lhs 4
1025+
1026 -----------------------------------------------------------------------------
1027 -- |
1028 -- Module      :  GHC.STRef
1029hunk ./GHC/Show.lhs 2
1030 \begin{code}
1031-{-# LANGUAGE BangPatterns #-}
1032-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1033+{-# LANGUAGE NoImplicitPrelude, BangPatterns, MagicHash #-}
1034 {-# OPTIONS_HADDOCK hide #-}
1035hunk ./GHC/Show.lhs 4
1036+
1037 -----------------------------------------------------------------------------
1038 -- |
1039 -- Module      :  GHC.Show
1040hunk ./GHC/Show.lhs-boot 2
1041 \begin{code}
1042-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1043+{-# LANGUAGE NoImplicitPrelude #-}
1044 
1045 module GHC.Show (showSignedInt) where
1046 
1047hunk ./GHC/Stable.lhs 2
1048 \begin{code}
1049-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1050+{-# LANGUAGE NoImplicitPrelude
1051+           , MagicHash
1052+           , UnboxedTuples
1053+           , ForeignFunctionInterface
1054+  #-}
1055 {-# OPTIONS_HADDOCK hide #-}
1056hunk ./GHC/Stable.lhs 8
1057+
1058 -----------------------------------------------------------------------------
1059 -- |
1060 -- Module      :  GHC.Stable
1061hunk ./GHC/Storable.lhs 2
1062 \begin{code}
1063-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1064+{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples #-}
1065 {-# OPTIONS_HADDOCK hide #-}
1066hunk ./GHC/Storable.lhs 4
1067+
1068 -----------------------------------------------------------------------------
1069 -- |
1070 -- Module      :  GHC.Storable
1071hunk ./GHC/TopHandler.lhs 2
1072 \begin{code}
1073-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1074+{-# LANGUAGE CPP
1075+           , NoImplicitPrelude
1076+           , ForeignFunctionInterface
1077+           , MagicHash
1078+           , UnboxedTuples
1079+           , PatternGuards
1080+  #-}
1081 {-# OPTIONS_GHC -fno-warn-unused-imports #-}
1082 {-# OPTIONS_HADDOCK hide #-}
1083hunk ./GHC/TopHandler.lhs 11
1084+
1085 -----------------------------------------------------------------------------
1086 -- |
1087 -- Module      :  GHC.TopHandler
1088hunk ./GHC/Unicode.hs 1
1089-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1090+{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-}
1091 {-# OPTIONS -#include "WCsubst.h" #-}
1092 {-# OPTIONS_HADDOCK hide #-}
1093hunk ./GHC/Unicode.hs 4
1094+
1095 -----------------------------------------------------------------------------
1096 -- |
1097 -- Module      :  GHC.Unicode
1098hunk ./GHC/Unicode.hs-boot 1
1099-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1100+{-# LANGUAGE NoImplicitPrelude #-}
1101 
1102 module GHC.Unicode where
1103 
1104hunk ./GHC/Weak.lhs 2
1105 \begin{code}
1106-{-# LANGUAGE BangPatterns #-}
1107-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1108+{-# LANGUAGE CPP
1109+           , NoImplicitPrelude
1110+           , BangPatterns
1111+           , MagicHash
1112+           , UnboxedTuples
1113+  #-}
1114 {-# OPTIONS_HADDOCK hide #-}
1115hunk ./GHC/Weak.lhs 9
1116+
1117 -----------------------------------------------------------------------------
1118 -- |
1119 -- Module      :  GHC.Weak
1120hunk ./GHC/Word.hs 1
1121-{-# LANGUAGE BangPatterns #-}
1122-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1123+{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, MagicHash #-}
1124 {-# OPTIONS_HADDOCK hide #-}
1125hunk ./GHC/Word.hs 3
1126+
1127 -----------------------------------------------------------------------------
1128 -- |
1129 -- Module      :  GHC.Word
1130hunk ./NHC/PosixTypes.hsc 1
1131+{-# LANGUAGE CPP #-}
1132 {-# OPTIONS_NHC98 -I/usr/include #-}
1133hunk ./NHC/PosixTypes.hsc 3
1134+
1135 -----------------------------------------------------------------------------
1136 -- |
1137 -- Module      :  NHC.PosixTypes
1138hunk ./Numeric.hs 1
1139-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1140+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
1141+
1142 -----------------------------------------------------------------------------
1143 -- |
1144 -- Module      :  Numeric
1145hunk ./Prelude.hs 1
1146-{-# OPTIONS_GHC -XNoImplicitPrelude -XBangPatterns #-}
1147+{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns #-}
1148+
1149 -----------------------------------------------------------------------------
1150 -- |
1151 -- Module      :  Prelude
1152hunk ./System/CPUTime.hsc 1
1153+{-# LANGUAGE CPP, NondecreasingIndentation, ForeignFunctionInterface #-}
1154+
1155 -----------------------------------------------------------------------------
1156 -- |
1157 -- Module      :  System.CPUTime
1158hunk ./System/Environment.hs 1
1159+{-# LANGUAGE CPP, ForeignFunctionInterface #-}
1160+
1161 -----------------------------------------------------------------------------
1162 -- |
1163 -- Module      :  System.Environment
1164hunk ./System/Event/Clock.hsc 1
1165-{-# LANGUAGE BangPatterns #-}
1166-{-# LANGUAGE ForeignFunctionInterface #-}
1167+{-# LANGUAGE NoImplicitPrelude, BangPatterns, ForeignFunctionInterface #-}
1168 
1169 module System.Event.Clock (getCurrentTime) where
1170 
1171hunk ./System/Event/Control.hs 1
1172-{-# LANGUAGE CPP, ForeignFunctionInterface, NoImplicitPrelude,
1173-    ScopedTypeVariables, BangPatterns #-}
1174+{-# LANGUAGE CPP
1175+           , ForeignFunctionInterface
1176+           , NoImplicitPrelude
1177+           , ScopedTypeVariables
1178+           , BangPatterns
1179+  #-}
1180 
1181 module System.Event.Control
1182     (
1183hunk ./System/Event/EPoll.hsc 1
1184-{-# LANGUAGE ForeignFunctionInterface, GeneralizedNewtypeDeriving,
1185-    NoImplicitPrelude, BangPatterns #-}
1186+{-# LANGUAGE CPP
1187+           , ForeignFunctionInterface
1188+           , GeneralizedNewtypeDeriving
1189+           , NoImplicitPrelude
1190+           , BangPatterns
1191+  #-}
1192 
1193 --
1194 -- | A binding to the epoll I/O event notification facility
1195hunk ./System/Event/IntMap.hs 2
1196 {-# LANGUAGE CPP, MagicHash, NoImplicitPrelude #-}
1197+
1198 -----------------------------------------------------------------------------
1199 -- |
1200 -- Module      :  System.Event.IntMap
1201hunk ./System/Event/KQueue.hsc 1
1202-{-# LANGUAGE ForeignFunctionInterface, GeneralizedNewtypeDeriving,
1203-    NoImplicitPrelude, RecordWildCards, BangPatterns #-}
1204+{-# LANGUAGE CPP
1205+           , ForeignFunctionInterface
1206+           , GeneralizedNewtypeDeriving
1207+           , NoImplicitPrelude
1208+           , RecordWildCards
1209+           , BangPatterns
1210+  #-}
1211 
1212 module System.Event.KQueue
1213     (
1214hunk ./System/Event/Manager.hs 1
1215-{-# LANGUAGE BangPatterns, CPP, ExistentialQuantification, NoImplicitPrelude,
1216-    RecordWildCards, TypeSynonymInstances #-}
1217+{-# LANGUAGE BangPatterns
1218+           , CPP
1219+           , ExistentialQuantification
1220+           , NoImplicitPrelude
1221+           , RecordWildCards
1222+           , TypeSynonymInstances
1223+           , FlexibleInstances
1224+  #-}
1225+
1226 module System.Event.Manager
1227     ( -- * Types
1228       EventManager
1229hunk ./System/Event/Poll.hsc 1
1230-{-# LANGUAGE ForeignFunctionInterface, GeneralizedNewtypeDeriving,
1231-    NoImplicitPrelude, BangPatterns #-}
1232+{-# LANGUAGE CPP
1233+           , ForeignFunctionInterface
1234+           , GeneralizedNewtypeDeriving
1235+           , NoImplicitPrelude
1236+           , BangPatterns
1237+  #-}
1238 
1239 module System.Event.Poll
1240     (
1241hunk ./System/Exit.hs 1
1242+{-# LANGUAGE CPP #-}
1243+
1244 -----------------------------------------------------------------------------
1245 -- |
1246 -- Module      :  System.Exit
1247hunk ./System/IO.hs 1
1248-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1249+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1250+
1251 -----------------------------------------------------------------------------
1252 -- |
1253 -- Module      :  System.IO
1254hunk ./System/IO/Error.hs 1
1255-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1256+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1257 
1258 -----------------------------------------------------------------------------
1259 -- |
1260hunk ./System/IO/Unsafe.hs 1
1261-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1262+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1263+
1264 -----------------------------------------------------------------------------
1265 -- |
1266 -- Module      :  System.IO.Unsafe
1267hunk ./System/Info.hs 1
1268+{-# LANGUAGE CPP #-}
1269+
1270 -----------------------------------------------------------------------------
1271 -- |
1272 -- Module      :  System.Info
1273hunk ./System/Mem.hs 1
1274+{-# LANGUAGE CPP #-}
1275+
1276+#ifdef __GLASGOW_HASKELL__
1277+{-# LANGUAGE ForeignFunctionInterface #-}
1278+#endif
1279+
1280 -----------------------------------------------------------------------------
1281 -- |
1282 -- Module      :  System.Mem
1283hunk ./System/Mem/StableName.hs 1
1284+{-# LANGUAGE CPP #-}
1285+#ifdef __GLASGOW_HASKELL__
1286+{-# LANGUAGE MagicHash #-}
1287+#if !defined(__PARALLEL_HASKELL__)
1288+{-# LANGUAGE UnboxedTuples #-}
1289+#endif
1290+#endif
1291+
1292 -----------------------------------------------------------------------------
1293 -- |
1294 -- Module      :  System.Mem.StableName
1295hunk ./System/Mem/Weak.hs 1
1296+{-# LANGUAGE CPP #-}
1297+
1298 -----------------------------------------------------------------------------
1299 -- |
1300 -- Module      :  System.Mem.Weak
1301hunk ./System/Posix/Internals.hs 1
1302-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1303+{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-}
1304 {-# OPTIONS_GHC -fno-warn-unused-binds #-}
1305 {-# OPTIONS_HADDOCK hide #-}
1306 
1307hunk ./System/Posix/Types.hs 1
1308-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1309+{-# LANGUAGE CPP
1310+           , NoImplicitPrelude
1311+           , MagicHash
1312+           , GeneralizedNewtypeDeriving
1313+  #-}
1314 {-# OPTIONS_GHC -fno-warn-unused-binds #-}
1315hunk ./System/Posix/Types.hs 7
1316+
1317 -----------------------------------------------------------------------------
1318 -- |
1319 -- Module      :  System.Posix.Types
1320hunk ./System/Timeout.hs 1
1321+{-# LANGUAGE CPP #-}
1322+
1323 -------------------------------------------------------------------------------
1324 -- |
1325 -- Module      :  System.Timeout
1326hunk ./Text/ParserCombinators/ReadP.hs 1
1327-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1328+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1329+#ifndef __NHC__
1330+{-# LANGUAGE Rank2Types #-}
1331+#endif
1332+#ifdef __GLASGOW_HASKELL__
1333+{-# LANGUAGE MagicHash #-}
1334+#endif
1335+
1336 -----------------------------------------------------------------------------
1337 -- |
1338 -- Module      :  Text.ParserCombinators.ReadP
1339hunk ./Text/ParserCombinators/ReadPrec.hs 1
1340-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1341+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1342+
1343 -----------------------------------------------------------------------------
1344 -- |
1345 -- Module      :  Text.ParserCombinators.ReadPrec
1346hunk ./Text/Printf.hs 1
1347+{-# LANGUAGE CPP #-}
1348+
1349 -----------------------------------------------------------------------------
1350 -- |
1351 -- Module      :  Text.Printf
1352hunk ./Text/Read.hs 1
1353-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1354+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1355+
1356 -----------------------------------------------------------------------------
1357 -- |
1358 -- Module      :  Text.Read
1359hunk ./Text/Read/Lex.hs 1
1360-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1361+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1362+
1363 -----------------------------------------------------------------------------
1364 -- |
1365 -- Module      :  Text.Read.Lex
1366hunk ./Text/Show.hs 1
1367-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1368+{-# LANGUAGE CPP, NoImplicitPrelude #-}
1369+
1370 -----------------------------------------------------------------------------
1371 -- |
1372 -- Module      :  Text.Show
1373hunk ./Text/Show/Functions.hs 1
1374+{-# LANGUAGE CPP #-}
1375 -- This module deliberately declares orphan instances:
1376 {-# OPTIONS_GHC -fno-warn-orphans #-}
1377hunk ./Text/Show/Functions.hs 4
1378+
1379 -----------------------------------------------------------------------------
1380 -- |
1381 -- Module      :  Text.Show.Functions
1382hunk ./Unsafe/Coerce.hs 1
1383-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
1384+{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
1385+
1386 -----------------------------------------------------------------------------
1387 -- |
1388 -- Module      :  Unsafe.Coerce
1389hunk ./base.cabal 102
1390         if os(windows)
1391             exposed-modules: GHC.IO.Encoding.CodePage.Table
1392                              GHC.Conc.Windows
1393-        extensions: MagicHash, ExistentialQuantification, Rank2Types,
1394-                    ScopedTypeVariables, UnboxedTuples,
1395-                    ForeignFunctionInterface, UnliftedFFITypes,
1396-                    DeriveDataTypeable, GeneralizedNewtypeDeriving,
1397-                    FlexibleInstances, StandaloneDeriving,
1398-                    PatternGuards, EmptyDataDecls, NoImplicitPrelude,
1399-                    NondecreasingIndentation
1400     }
1401     exposed-modules:
1402         Control.Applicative,
1403hunk ./base.cabal 224
1404             System.Event.Thread
1405             System.Event.Unique
1406     }
1407-    extensions: CPP
1408     -- We need to set the package name to base (without a version number)
1409     -- as it's magic.
1410     ghc-options: -package-name base
1411hunk ./codepages/MakeTable.hs 203
1412 -- Static parts of the generated module.
1413 
1414 languageDirectives :: [String]
1415-languageDirectives = ["{-# LANGUAGE MagicHash #-}"]
1416+languageDirectives = ["{-# LANGUAGE CPP, MagicHash #-}"]
1417 
1418 
1419 firstComment :: [FilePath] -> [String]
1420}
1421
1422Context:
1423
1424[fix silly mistake in hGetBufSome (#4895)
1425Simon Marlow <marlowsd@gmail.com>**20110121143555
1426 Ignore-this: 54a632de9f2826c861c98a7eeb72aab2
1427]
1428[Clean up remnants of the Event Manager after forkProcess. Closes #4449
1429Dmitry Astapov <dastapov@gmail.com>**20110119103300
1430 Ignore-this: eac4a80629d51a80e29d904c05c886e4
1431]
1432[Document System.Event
1433Johan Tibell <johan.tibell@gmail.com>**20110112125430
1434 Ignore-this: 737fefdd3e2d6ac2a30dca40fd5af40a
1435]
1436[Add NondecreasingIndentation to the extensions needed
1437Ian Lynagh <igloo@earth.li>**20110117184820
1438 Ignore-this: cc65b5c32ae8d13bed7a90c835d2ef6a
1439]
1440[Remove extensions required for GHC < 6.10
1441Ian Lynagh <igloo@earth.li>**20110117184715
1442 Ignore-this: e444b273e6c4edd8447f2d592f9a9079
1443]
1444[Added a Typeable instance for SampleVar
1445Bas van Dijk <v.dijk.bas@gmail.com>**20101127091151
1446 Ignore-this: 43f1e6ff8d0c278724c6437c5c06386b
1447]
1448[Derived Eq instance for QSem and QSemN
1449Bas van Dijk <v.dijk.bas@gmail.com>**20101201080307
1450 Ignore-this: c1d164b1a5740adffb430924ffc96a0c
1451]
1452[Derived Eq instance for Chan
1453Bas van Dijk <v.dijk.bas@gmail.com>**20101125210240
1454 Ignore-this: 45c0f1cde9b77739bd8fce02318f32c3
1455]
1456[fix #4876
1457Simon Marlow <marlowsd@gmail.com>**20110106154654
1458 Ignore-this: 420925b083e396b48ca4bc41f82ea355
1459]
1460[Instances for ST not available in nhc98.
1461Malcolm.Wallace@me.com**20110104125142
1462 Ignore-this: ef97b7ecda6dda089c2a065a7c9d4cfd
1463]
1464[indentation tweaks (whitespace only)
1465Ross Paterson <ross@soi.city.ac.uk>**20110103195201
1466 Ignore-this: 1fb5255f40acf275e093f32607417ba0
1467]
1468[indentation tweaks, re-order exports
1469Ross Paterson <ross@soi.city.ac.uk>**20110103194206
1470 Ignore-this: f1f33575115ca59e933201d3aa3a36b8
1471]
1472[Add Applicative instances for ST monads (proposal #4455)
1473Ross Paterson <ross@soi.city.ac.uk>**20110103185722
1474 Ignore-this: 4a63bf48a5d65b617c92b630541bf4f8
1475 
1476 patch from Bas van Dijk
1477]
1478[Always use 8k buffers instead of BUFSIZ
1479Simon Marlow <marlowsd@gmail.com>**20101221155154
1480 Ignore-this: e5960afc3bf77290e098e2b51ac59c5c
1481 This makes a huge difference to I/O performance for me on Windows,
1482 where BUFSIZ is 512.  It might help on Mac too.
1483]
1484[Replace uses of the old catch function with the new one
1485Ian Lynagh <igloo@earth.li>**20101218213553]
1486[Fix build on Windows
1487Ian Lynagh <igloo@earth.li>**20101213235837]
1488[Fix warnings
1489Ian Lynagh <igloo@earth.li>**20101213132446
1490 Ignore-this: a5daa167e029170eaec0708352edc7ff
1491]
1492[Use onException for exception cleanup, and mask async exceptions
1493Bryan O'Sullivan <bos@serpentine.com>**20101206005222
1494 Ignore-this: ad60d2beef813e6b18bfde711d86d2fb
1495]
1496[Drop closeFd from Control.Concurrent, rename to closeFdWith
1497Bryan O'Sullivan <bos@serpentine.com>**20101206004124
1498 Ignore-this: c30c2c577f61018966e17208a2718abc
1499]
1500[Fix #4533 - unregister callbacks on exception, fixing a memory leak
1501Bryan O'Sullivan <bos@serpentine.com>**20101127181826
1502 Ignore-this: c37da82a058637c285a2b2fee4eee217
1503 
1504 Our problem here was that if a thread blocked in threadWait or
1505 threadDelay and was killed by an exception thrown from another thread,
1506 its registration with the IO manager would not be cleared.
1507 
1508 The fix is simply to install exception handlers that do the cleanup and
1509 propagate the exception.
1510 
1511]
1512[Drop System.Mem.Weak's dependency on Prelude
1513Bryan O'Sullivan <bos@serpentine.com>**20101127060425
1514 Ignore-this: e33216175ae42fe438d8be153cef0fd9
1515]
1516[Fix #4514 - IO manager deadlock
1517Bryan O'Sullivan <bos@serpentine.com>**20101126232810
1518 Ignore-this: 9deacf960c78c797ef6859b60ca9922
1519 
1520 * The public APIs for threadWaitRead and threadWaitWrite remain unchanged,
1521   and now throw an IOError if a file descriptor is closed behind their
1522   backs.  This behaviour is documented.
1523 
1524 * The GHC.Conc API is extended to add a closeFd function, the behaviour
1525   of which is documented.
1526 
1527 * Behind the scenes, we add a new evtClose event, which is used only when
1528   one thread closes a file descriptor that other threads are blocking on.
1529 
1530 * Both base's IO code and network use the new closeFd function.
1531 
1532]
1533[Bump the version of base
1534Bryan O'Sullivan <bos@serpentine.com>**20101126232756
1535 Ignore-this: deae33d1f0411b39d2f04e3e3e4e3598
1536]
1537[Cache for powers of 10
1538Daniel Fischer <daniel.is.fischer@web.de>**20101024190707
1539 Ignore-this: 53f2a3b3a3303c2b70dfc0838ac9c712
1540 Add a cache for commonly needed powers of 10 to speed up floatToDigits.
1541]
1542[Fix typo in floatToDigits
1543Daniel Fischer <daniel.is.fischer@web.de>**20101024185041
1544 Ignore-this: b8124de42645db04f3f8067fb77b87de
1545 The mDn value for powers of 2 >= floatDigits x - 1 was typo'ed, leading to longer than necessary show results in a few cases (e.g. 2.0^852).
1546 Corrected in accordance with Burger and Dybvig's paper.
1547]
1548[Performance enchancement for floatToDigits
1549Daniel Fischer <daniel.is.fischer@web.de>**20101024185914
1550 Ignore-this: fccbea500820219f755412f1e6af4be
1551 Use quot and quotRem instead of div and divMod for dividing positive Integers since that is a bit faster.
1552]
1553[FIX #4383
1554Daniel Fischer <daniel.is.fischer@web.de>**20101024182942
1555 Ignore-this: 340935fb5bde7a2f9446235ce502295a
1556 Use a better approximation to logBase 10 2 to prevent leading zeros in floatToDigits.
1557]
1558[Add a Read instance for Data.Fixed.Fixed
1559Ian Lynagh <igloo@earth.li>**20101116211910]
1560[Also export lines, words, unlines and unwords from Data.String
1561Bas van Dijk <v.dijk.bas@gmail.com>**20101018210317
1562 Ignore-this: 43f8b96a8a0934de94ba4fea26d7b562
1563]
1564[Do not export String from Data.Char
1565Bas van Dijk <v.dijk.bas@gmail.com>**20101018205632
1566 Ignore-this: bb9e0306c371f7c455be7799131c056d
1567]
1568[Export String from Data.String
1569Bas van Dijk <v.dijk.bas@gmail.com>**20101018204939
1570 Ignore-this: 2c860e0e88a5371f5c37ffc4e7148743
1571]
1572[extend the documentation about interruptible operations
1573Simon Marlow <marlowsd@gmail.com>**20101201131917
1574 Ignore-this: 95d1f0595a8b0f1ce977064ba544fa1b
1575]
1576[fix a discarded exception in hClose
1577Simon Marlow <marlowsd@gmail.com>**20101201130847
1578 Ignore-this: 7b023ae78d7edf356bafe02676769eec
1579]
1580[-XPArr is now -XParallelArrays
1581Ben Lippmeier <benl@ouroborus.net>**20101130085931
1582 Ignore-this: b5529a189862387e291739f8b55bfa17
1583]
1584[check for ClosedHandle in read/write operations on DuplexHandles (#4808)
1585Simon Marlow <marlowsd@gmail.com>**20101201105114
1586 Ignore-this: 434443d3e31ea2ca3c5ee189c1318389
1587]
1588[Fix typo
1589Bryan O'Sullivan <bos@serpentine.com>**20101126200841
1590 Ignore-this: fc81cd0e820931df6dc87c52751594ef
1591]
1592[fix hTell behaviour with Unicode Handles
1593Simon Marlow <marlowsd@gmail.com>**20101125121831
1594 Ignore-this: bb6fefd609a30c106e877783e0f9e0a4
1595]
1596[Encode immediately in hPutStr and hPutChar
1597Simon Marlow <marlowsd@gmail.com>**20101125102520
1598 Ignore-this: 1503393cde63dd99a1e8c9d716bcbe10
1599 This means that decoding errors will be detected accurately, and can
1600 be caught and handled.  Overall the implementation is simpler this way
1601 too.
1602 
1603 It does impose a performance hit on small hPutStrs, although larger
1604 hPutStrs seem to be unaffected.  To compensate somewhat, I optimised
1605 hPutStrLn.
1606]
1607[Don't throw an error if the output buffer had no room
1608Simon Marlow <marlowsd@gmail.com>**20101124164221
1609 Ignore-this: 45023b77b7d107daae552d36701a225a
1610 This is consistent with the other codecs, and will be relied on by
1611 some upcoming changes in the IO library.
1612]
1613[use LANGUAGE instead of OPTIONS_GHC
1614Simon Marlow <marlowsd@gmail.com>**20101124162530
1615 Ignore-this: b72019eeeb706f366706578a45b22d46
1616]
1617[doc fix: don't refer to unblock.
1618Simon Marlow <marlowsd@gmail.com>**20101108133212
1619 Ignore-this: 52da909a3d262dda2c5f8e616da8ace3
1620]
1621[Remove unused import on Windows
1622Ian Lynagh <igloo@earth.li>**20101120191432
1623 Ignore-this: 1d58c156f7c1884122ab957c1cb4328c
1624]
1625[Remove an unnecessary fromIntegral
1626Ian Lynagh <igloo@earth.li>**20101120191052
1627 Ignore-this: 782b98c388086bd21cd3c33093938855
1628]
1629[Remove a redundant fromIntegral
1630Ian Lynagh <igloo@earth.li>**20101120185837
1631 Ignore-this: 7ec9d1fe7c8f0c66b1ceaccf3f8b94ad
1632]
1633[Make (^) and (^^) INLINABLE
1634simonpj@microsoft.com**20101117100510
1635 Ignore-this: 111eececad91a198254c8976b4c26a3d
1636 
1637 This makes them perform well robustly
1638 (e.g. in test perf/should_run/MethSharing)
1639 rather than relying on a rather delicate
1640 let-floating.  See Note [Inlining (^) in Real.lhs
1641]
1642[TAG 2010-11-18
1643Ian Lynagh <igloo@earth.li>**20101118011615
1644 Ignore-this: a5e79170bccf94dc72191a79cf756be7
1645]
1646[Remove redundant fromIntegral
1647simonpj@microsoft.com**20101117225716
1648 Ignore-this: 5a3e86b12cc9c9959d70d954f065cd
1649]
1650[Fixing uses of fromIntegral for Windows
1651dimitris@microsoft.com**20101117183351]
1652[Catch exceptions in current thread and throw them to the forked thread in runInUnboundThread
1653Bas van Dijk <v.dijk.bas@gmail.com>**20101014212723
1654 Ignore-this: 6ed2952a3fa00d11055b61ed60f55ea8
1655]
1656[There's no need to explicitly check for blocked status in runInUnboundThread when we have mask
1657Bas van Dijk <v.dijk.bas@gmail.com>**20101014212325
1658 Ignore-this: 22ca4c9eb3a476b6f83e612cccbac8ab
1659]
1660[Use throwIO instead of throw in runInBoundThread and runInUnboundThread
1661Bas van Dijk <v.dijk.bas@gmail.com>**20101014210546
1662 Ignore-this: 8f8716fc3b565bdb11c68856663793c5
1663]
1664[Remove unnecessary fromIntegral calls
1665simonpj@microsoft.com**20101116172451
1666 Ignore-this: 8c44dc2b381c050d4eaaf287bbc55b9
1667]
1668[Add some comments to the generated Table.hs
1669Ian Lynagh <igloo@earth.li>**20101113123430]
1670[System.Event.KQueue conditionally uses BangPatterns
1671Ian Lynagh <igloo@earth.li>**20101113114825]
1672[Add LANGUAGE BangPatterns to modules that use bang patterns
1673simonpj@microsoft.com**20101112170543
1674 Ignore-this: 30f36b61c29a5fbbfc70b97143ebb4a8
1675]
1676[Reimplement firstPowerOf2
1677Johan Tibell <johan.tibell@gmail.com>**20101103094630
1678 Ignore-this: cc4f6ebe52f19ddc34d5e6412753d399
1679]
1680[Remove redundant import
1681Ian Lynagh <igloo@earth.li>**20101031162520
1682 Ignore-this: 7fd90d2c844e28f7100c0d803d527953
1683]
1684[Re-gen GHC/IO/Encoding/CodePage/Table.hs
1685Ian Lynagh <igloo@earth.li>**20101031162034
1686 Ignore-this: f8885db176f81b296f8dd8bb3146c05b
1687]
1688[Add a Makefile for MakeTable, and remove GHC.Num generated import
1689Ian Lynagh <igloo@earth.li>**20101031161732
1690 Ignore-this: 4459f6b29a58978ab56af31bdb888280
1691]
1692[Fix whitespace in codepages/MakeTable.hs
1693Ian Lynagh <igloo@earth.li>**20101031154953
1694 Ignore-this: 7d280cf26429de8a51947c2690d63b33
1695]
1696[Add an INLINE pragma on fromInteger on Int
1697simonpj@microsoft.com**20101027193931
1698 Ignore-this: 6363b8e1338f1e5334c28e8967284ef3
1699]
1700[Add an INLINE pragme for fmapDefault
1701simonpj@microsoft.com**20101027193859
1702 Ignore-this: 5f140c8fe79bbe1fa6af933fb58366bb
1703]
1704[hGetBuf: fix a case of a short read being returned (#4427)
1705Simon Marlow <marlowsd@gmail.com>**20101027144324
1706 Ignore-this: 6aa4cf722bef8eb01dfec3e751fd3eeb
1707]
1708[Refer to 'mask' instead of 'block' in documentation of Control.Exception
1709Bas van Dijk <v.dijk.bas@gmail.com>**20101016185312
1710 Ignore-this: cd1bc58df53f3cd1078b9031c3c13f4e
1711]
1712[Add showMultiLineString to GHC.Show
1713simonpj@microsoft.com**20101025151655
1714 Ignore-this: eacc594597387e8d965d17204b3ae35f
1715 
1716 This is part of the fix for #4436
1717 
1718   showMultiLineString :: String -> [String]
1719   -- | Like 'showLitString' (expand escape characters using Haskell
1720   -- escape conventions), but
1721   --   * break the string into multiple lines
1722   --   * wrap the entire thing in double quotes
1723   -- Example:  @breakMultiLineString "hello\ngoodbye\nblah"@
1724   -- returns   @["\"hello\\", "\\goodbye\\", "\\blah\"" ]@
1725   -- where those "\\" are really just a single backslash
1726   -- (but I'm writing them here as Haskell literals)
1727]
1728[CIntPtr, CUIntPtr, CIntMax, CUIntMax are new to nhc98.
1729Malcolm.Wallace@me.com**20101025102644
1730 Ignore-this: 32d703e70b9d0136cd68fa1987b35c2c
1731]
1732[Follow GHC.Bool/GHC.Types merge
1733Ian Lynagh <igloo@earth.li>**20101023151510
1734 Ignore-this: e8b93b702f02a4709706b130988f85a8
1735]
1736[Remove redundant imports, now that NoImplicitPrelude does not imply RebindableSyntax
1737simonpj@microsoft.com**20101022143157
1738 Ignore-this: 8d11a7ea4625d4d9cd1514e7fe158626
1739]
1740[FIX #4335
1741Daniel Fischer <daniel.is.fischer@web.de>**20101019010109
1742 Ignore-this: 3b8ad075637088df77937b923f623204
1743 fromRational :: Rational -> Ratio a produced invalid results for fixed-width
1744 types a. Reduce the fraction to avoid that.
1745]
1746[FIX #4337
1747Daniel Fischer <daniel.is.fischer@web.de>**20101019003030
1748 Ignore-this: e6eee4088d63e8d72d5ca7d92f708705
1749 Special versions for the power functions with a Rational base and rewrite rules.
1750]
1751[remove trailing whitespace
1752Simon Marlow <marlowsd@gmail.com>**20101021093337
1753 Ignore-this: dda2815ba424a460ba2a31771a3f03fc
1754]
1755[FIX #4336
1756Daniel Fischer <daniel.is.fischer@web.de>**20101021093246
1757 Ignore-this: 76031829aff90251a284dbfa72f3b128
1758 Avoid superfluous gcd calculation in recip for Ratio a because numerator
1759 and denominator are known to be coprime.
1760]
1761[Add throwSTM :: Exception e => e -> STM a
1762Bas van Dijk <v.dijk.bas@gmail.com>**20100926192144
1763 Ignore-this: c6bfdae0eab9f0cf1360bc06d088bfd5
1764]
1765[Generalize catchSTM
1766Bas van Dijk <v.dijk.bas@gmail.com>**20100926192106
1767 Ignore-this: d2038494582d2cde2247293dd162671c
1768]
1769[FIX #4334
1770Daniel Fischer <daniel.is.fischer@web.de>**20101020091111
1771 Ignore-this: 1a1a406fcf4c352b5bc1f46f93f31b2a
1772 Make selector thunks visible to GHC to fix a space leak in lines.
1773]
1774[FIX #1434
1775Daniel Fischer <daniel.is.fischer@web.de>**20101020091014
1776 Ignore-this: 3c7c73d3f4487d5aaa453087497d3534
1777 Rewrite rules for RealFrac methods with sized Int and Word targets.
1778 For all types whose range is contained in Int's range, there are now
1779 rewrite rules for properFraction, truncate, floor, ceiling and round
1780 from Double and Float, going through the specialised methods for Int.
1781 
1782 Unfortunately, we can't have a rewrite rule for Word.
1783]
1784[Define SpecConstrAnnotation in GHC.Exts, and import it from there
1785simonpj@microsoft.com**20101018135857
1786 Ignore-this: 8bf81cbc5787dbb5a3875b5622f67732
1787   
1788 Reason: avoid having to link the entire ghc package in modules
1789 that use compile-time annotations:
1790   
1791        import GHC.Exts( SpecConstrAnnotation )
1792        {-# ANN type T ForceSpecConstr #-}
1793   
1794 It's a kind of bug that the package exporting SpecConstrAnnotation
1795 is linked even though it is only needed at compile time, but putting
1796 the data type declaration in GHC.Exts is a simple way to sidestep
1797 the problem
1798   
1799 See See Note [SpecConstrAnnotation] in SpecConstr
1800]
1801[throwTo: mention interruptible foreign calls
1802Simon Marlow <marlowsd@gmail.com>**20101014084220
1803 Ignore-this: dbc53d85f870cf649f87186c7185465a
1804]
1805[remove trailing whitespace
1806Simon Marlow <marlowsd@gmail.com>**20101013101906
1807 Ignore-this: b8b424540cacbbb3c6d934242e3af795
1808]
1809[FIX #4381
1810Simon Marlow <marlowsd@gmail.com>**20101013101849
1811 Ignore-this: f0daa4845eeb444231451b975b71d055
1812 Fix scaleFloat by clamping the scaling parameter so that
1813 exponent + scale doesn't overflow.
1814 
1815 Patch by: Daniel Fischer <daniel.is.fischer@web.de>
1816]
1817[Replaced some throws to throwIOs where the type is IO
1818Bas van Dijk <v.dijk.bas@gmail.com>**20100924221340
1819 Ignore-this: e74191e4527ae6f7551c95fd41063335
1820]
1821[Added initial .authorspellings
1822Bas van Dijk <v.dijk.bas@gmail.com>**20101005072701
1823 Ignore-this: 63628bcabfdd0b7beda4cd37daeccd89
1824]
1825[Lazier intersperse
1826Daniel Fischer <daniel.is.fischer@web.de>**20101002231201
1827 Ignore-this: a0fed65930cf19e68b4363381a5ab576
1828 A lazier implementation of intersperse, and consequentially intercalate, to
1829 avoid space leaks.
1830]
1831[FIX #4228 (atanh (-1) returns NaN instead of -Infinity)
1832ghc@cainnorris.net**20100816213654
1833 Ignore-this: dee89c24493e84a02bea711a1c83a73f
1834]
1835[Make intersectBy lazier
1836Daniel Fischer <daniel.is.fischer@web.de>**20100930191731
1837 Ignore-this: ef687bc75923434e85c14b57171576aa
1838 Add shortcuts to intersectBy for empty list arguments.
1839 In addition to being faster in that case, more inputs yield defined results.
1840 Treats ticket #4323
1841]
1842[doc tweak for Directory file type: file names are '\0'-separated
1843Simon Marlow <marlowsd@gmail.com>**20100922113811
1844 Ignore-this: 96b7b004bd6e5bc3e958ad55bf238ba1
1845]
1846[documentation for IODeviceType (#4317, edited by me)
1847Simon Marlow <marlowsd@gmail.com>**20100915131341
1848 Ignore-this: 21c50ca7a189eebcf299523b6e942bae
1849]
1850[Allow Data.HashTable construction with user-supplied size
1851**20100722210726
1852 Ignore-this: bd54880bb16a106a992f03b040dc4164
1853 
1854 This avoids some resizing for users who know they will be inserting a
1855 lot of data.
1856 
1857 http://hackage.haskell.org/trac/ghc/ticket/4193
1858]
1859[some fixes for hGetBufSome
1860Simon Marlow <marlowsd@gmail.com>**20100916113732
1861 Ignore-this: 3e596a606c180dc4859ea8f4c9132ca1
1862  - fix one case where it was blocking when it shouldn't
1863  - a couple of error-message tweaks
1864]
1865[Windows: map ERROR_NO_DATA to EPIPE, rather than EINVAL
1866Simon Marlow <marlowsd@gmail.com>**20100915142618
1867 Ignore-this: 9023e5f0542419f225aef26cb6b1d88d
1868 WriteFile() returns ERROR_NO_DATA when writing to a pipe that is
1869 "closing", however by default the write() wrapper in the CRT maps this
1870 to EINVAL so we get confusing things like
1871 
1872   hPutChar: invalid argument (Invalid Argumnet)
1873 
1874 when piping the output of a Haskell program into something that closes
1875 the pipe early.  This was happening in the testsuite in a few place.
1876 
1877 The solution is to map ERROR_NO_DATA to EPIPE correctly, as we
1878 explicitly check for EPIPE on stdout (in GHC.TopHandler) so we can
1879 exit without an error in this case.
1880]
1881[tighten up parsing of numbers (#1579)
1882Simon Marlow <marlowsd@gmail.com>**20100913214733
1883 Ignore-this: 3411bf3d2e98cfacb9e0afd11d79e722
1884]
1885[Add absentError. 
1886simonpj@microsoft.com**20100914134639
1887 Ignore-this: d0eef5a87e1def4cdbde92a55241c8c4
1888 
1889 This patch accompanies the HEAD patch:
1890 
1891   Tue Sep 14 12:38:27 BST 2010  simonpj@microsoft.com
1892     * Make absent-arg wrappers work for unlifted types (fix Trac #4306)
1893     
1894     Previously we were simply passing arguments of unlifted
1895     type to a wrapper, even if they were absent, which was
1896     stupid.
1897     
1898     See Note [Absent error Id] in WwLib.
1899]
1900[Add missing import, fixes build on windows
1901simonpj@microsoft.com**20100914122750
1902 Ignore-this: 12ece15ef94982ddfbf5f9f7900619da
1903]
1904[Add a suitable Show instance for TextEncoding (#4273)
1905Simon Marlow <marlowsd@gmail.com>**20100913154459
1906 Ignore-this: 77f2235460895debd2827f34c42c3435
1907]
1908[don't fill a finalized handle with an error (see comment)
1909Simon Marlow <marlowsd@gmail.com>**20100913153350
1910 Ignore-this: c72cdb6898dffa88eca1d781171b2943
1911]
1912[deriving (Eq, Ord, Read, Show) for Newline and NewlineMode
1913Simon Marlow <marlowsd@gmail.com>**20100913153031
1914 Ignore-this: 9b9b29bfb7abf5550cfbfa7788f81bf
1915]
1916[fix warning on Windows
1917Simon Marlow <marlowsd@gmail.com>**20100913111536
1918 Ignore-this: dacc5448c452daad60ed37a1a5ed096e
1919]
1920[Put the state-token argument on fill, done, adjust on the RHS
1921simonpj@microsoft.com**20100913101832
1922 Ignore-this: d228b492de7d4635c026ed24cbc17e34
1923 
1924 This is so that the functions will inline when
1925 applied to their normal (non-state-token) aguments.
1926 
1927 I forget why I did this, but it seems like the right thing anyway.
1928]
1929[avoid Foreign.unsafePerformIO
1930Ross Paterson <ross@soi.city.ac.uk>**20100909125521
1931 Ignore-this: b698101119ffd1bc6311cce0736f745d
1932]
1933[Remove debugging code accidentally left in
1934Simon Marlow <marlowsd@gmail.com>**20100909113331
1935 Ignore-this: 906a14176dd37030b8203782a687936b
1936]
1937[Fix Windows build; patches frmo ezyang
1938Ian Lynagh <igloo@earth.li>**20100908123037
1939 Ignore-this: 2f02986087edd7da8382221012c27cd0
1940]
1941[More accurate isatty test for MinGW.
1942Edward Z. Yang <ezyang@mit.edu>**20100907154144
1943 Ignore-this: 93bdc2b2a8e65a7c4c7d3906bdda01db
1944]
1945[Fix the build when HAVE_KQUEUE but not HAVE_KEVENT64
1946Ian Lynagh <igloo@earth.li>**20100904223703]
1947[Fix warnings
1948benl@ouroborus.net**20100830044741
1949 Ignore-this: 8397aaec7c36046c9ace403e65f32d32
1950]
1951[fix cache variable name used by FP_SEARCH_LIBS_PROTO
1952Ross Paterson <ross@soi.city.ac.uk>**20100819204858
1953 Ignore-this: b8113cb3c6f0e03c507297c99d3d82b7
1954]
1955[Add a missing castPtr (only shows up in -DDEBUG)
1956simonpj@microsoft.com**20100815145127
1957 Ignore-this: 30b9c42cd3ce7837bdabd254fe66078d
1958]
1959[Fixed a rounding error in threadDelay
1960Johan Tibell <johan.tibell@gmail.com>**20100813124043
1961 Ignore-this: 1cb77d0852233ffffb144b134064ee3c
1962]
1963[export allocaBytesAligned; make allocaArray use the correct alignment (#2917)
1964Simon Marlow <marlowsd@gmail.com>**20100812105524
1965 Ignore-this: deb6495f7b7b84deaf02b88927a5ba8c
1966]
1967[deprecate unGetChan and isEmptyChan (see #4154)
1968Simon Marlow <marlowsd@gmail.com>**20100705125952
1969 Ignore-this: b4e769959f131b2d0001eb7202bc1b92
1970]
1971[Add type signatures to cope with lack of local generalisation
1972simonpj@microsoft.com**20100728124847
1973 Ignore-this: d3af9a47c2821c6081bde05a135a92fb
1974]
1975[Add type signature in local where
1976simonpj@microsoft.com**20100727151532
1977 Ignore-this: 1c57063ad32d13e0d1ec8daf968bf055
1978]
1979[Integrated new I/O manager
1980Simon Marlow <marlowsd@gmail.com>**20100810082248
1981 Ignore-this: ed70a9066ac9b676a446fe99978fef7a
1982 (patch originally by Johan Tibell <johan.tibell@gmail.com>, minor merging by me)
1983]
1984[Add mfilter to Control.Monad
1985jon.fairbairn@cl.cam.ac.uk**20090917145616
1986 Ignore-this: de4240b60684f3065b29378df3ea98f2
1987 
1988 Straightforward MonadPlus version of List.filter. I would
1989 prefer to call it filter, but the current naming scheme for
1990 Control.Monad implies mfilter.
1991 
1992]
1993[move Monad and MonadFix instances for Either from mtl (proposal #4159)
1994Ross Paterson <ross@soi.city.ac.uk>**20100729122449
1995 Ignore-this: b0f8cd8643679948d1da43bd7c08c5aa
1996 
1997 The Monad and MonadFix instances for Either (formerly in the mtl
1998 package) are moved to Control.Monad.Instances and Control.Monad.Fix
1999 respectively.  The Monad instance is still an orphan, to retain Haskell
2000 98 compatibility, but the MonadFix instance is together with its class.
2001 The Error constraint is removed from both instances, and the default
2002 definition of fail is used.
2003]
2004[Remove egregious ghc-ish from Foreign.Marshal
2005Malcolm.Wallace@me.com**20100722075449]
2006[add numSparks :: IO Int (#4167)
2007Simon Marlow <marlowsd@gmail.com>**20100720153858
2008 Ignore-this: 4543f57a7f137f8cae1c3efc5c023a9b
2009]
2010[add unsafeLocalState from Haskell 2010, and docs
2011Simon Marlow <marlowsd@gmail.com>**20100720082819
2012 Ignore-this: dcd79fb546ebe29ddff4df279ec2f38
2013]
2014[docs: mention that Foreign.unsafePerformIO is deprecated
2015Simon Marlow <marlowsd@gmail.com>**20100720082804
2016 Ignore-this: 4cfebb8f2a1cddc7d15e94e31b2befa4
2017 We can't actually deprecate it without introducing a name clash
2018 between Foreign.unsafePerformIO and System.IO.Unsafe.unsafePerformIO
2019]
2020[doc formatting fix
2021Simon Marlow <marlowsd@gmail.com>**20100714151347
2022 Ignore-this: 255edef607dcd290e198015240b5d125
2023]
2024[add module intro from Haskell 2010
2025Simon Marlow <marlowsd@gmail.com>**20100714115853
2026 Ignore-this: 59b5a07507a059ccccdff2dfb6490a27
2027]
2028[document exception-overriding behaviour in withFile
2029Simon Marlow <marlowsd@gmail.com>**20100714104107
2030 Ignore-this: f99e641ea2f46d872cb7420a62fa50dc
2031]
2032[doc: use "finalizer" consistently
2033Simon Marlow <marlowsd@gmail.com>**20100714103649
2034 Ignore-this: bdfea40f31dc5045fdbc6e12266dda93
2035]
2036[clarify meaning of bit
2037Simon Marlow <marlowsd@gmail.com>**20100714103310
2038 Ignore-this: 521b031f1e83ef34ca03d9aa9273df8a
2039]
2040[note shortcutting behaviour of any/all/elem
2041Simon Marlow <marlowsd@gmail.com>**20100714103304
2042 Ignore-this: 1605f362ba0712ad1cea1309636f3ea1
2043]
2044[add cast{C,U}CharToChar and castCharTo{C,U}Char, from Haskell 2010
2045Simon Marlow <marlowsd@gmail.com>**20100713132515
2046 Ignore-this: 9b1da827016c7b08668078b45964e9de
2047]
2048[mention that IntPtr and WordPtr can be marshalled to/from intptr_t and uintptr_t
2049Simon Marlow <marlowsd@gmail.com>**20100713132403
2050 Ignore-this: dcc112a72746ba117a84fa29e71b6800
2051]
2052[Partial fix for Trac #4136
2053simonpj@microsoft.com**20100707135725
2054 Ignore-this: 9548eeb3187d9779d4e5c858a0f35354
2055 
2056 In 'choose' (which is a library function designed specifically
2057 to support derived instances of Read), we must match Symbol
2058 as well as Ident, for nullary constructors that (wierdly) are
2059 symbols.
2060]
2061[Fix typo in documentation
2062Simon Hengel <simon.hengel@wiktory.org>**20100711141648
2063 Ignore-this: c052dd8a681832ef598a323ad55eae3a
2064]
2065[Remove duplicated word in documentation
2066Simon Hengel <simon.hengel@wiktory.org>**20100711072703
2067 Ignore-this: fb3732dc57be55f14168792f923433
2068]
2069[Allow nhc98 to cope with recent changes to Control.Exception.
2070Malcolm.Wallace@me.com**20100710170940]
2071[ New asynchronous exception control API (base parts)
2072Simon Marlow <marlowsd@gmail.com>**20100708152735
2073 Ignore-this: 71a4811804f04259f1fe739f8863beaf
2074   
2075 As discussed on the libraries/haskell-cafe mailing lists
2076   http://www.haskell.org/pipermail/libraries/2010-April/013420.html
2077 
2078 This is a replacement for block/unblock in the asychronous exceptions
2079 API to fix a problem whereby a function could unblock asynchronous
2080 exceptions even if called within a blocked context.
2081 
2082 The new terminology is "mask" rather than "block" (to avoid confusion
2083 due to overloaded meanings of the latter).
2084 
2085 The following is the new API; the old API is deprecated but still
2086 available for the time being.
2087 
2088 Control.Exception
2089 -----------------
2090 
2091 mask  :: ((forall a. IO a -> IO a) -> IO b) -> IO b
2092 mask_ :: IO a -> IO a
2093 
2094 uninterruptibleMask :: ((forall a. IO a -> IO a) -> IO b) -> IO b
2095 uninterruptibleMask_ :: IO a -> IO
2096 
2097 getMaskingState :: IO MaskingState
2098 
2099 data MaskingState
2100   = Unmasked
2101   | MaskedInterruptible
2102   | MaskedUninterruptible
2103 
2104 
2105 Control.Concurrent
2106 ------------------
2107 
2108 forkIOUnmasked :: IO () -> IO ThreadId
2109]
2110[Async-exception safety, and avoid space leaks
2111Simon Marlow <marlowsd@gmail.com>**20100708145819
2112 Ignore-this: dbfd0e61551e9e7b4fc1c6fe9b9a83de
2113 Patch submitted by: Bas van Dijk <v.dijk.bas@gmail.com>
2114 Modified slightly by me to remove non-functional changes.
2115]
2116[Async-exception safety, and avoid space leaks
2117Simon Marlow <marlowsd@gmail.com>**20100708103154
2118 Ignore-this: 190c3ac8f6633231624da8cf1316588
2119 Patch submitted by: Bas van Dijk <v.dijk.bas@gmail.com>
2120 Modified slightly by me to remove non-functional changes.
2121]
2122[Fix a few places where we forgot to close the text codecs (#4029)
2123Simon Marlow <marlowsd@gmail.com>**20100702130210
2124 Ignore-this: 2e81a4b4cb343181cef34b0f9e2ded47
2125 Each time you invoke :load in GHCi it resets the CAFs, including
2126 stdin/stdout/stderr, and each of these was allocating a new iconv_t.
2127]
2128[remove docs from Monad that belonged on the instance for MonadPlus IO
2129Simon Marlow <marlowsd@gmail.com>**20100701154203
2130 Ignore-this: 59df02542a7ac9421552a2155d848d27
2131]
2132[docs: unqualify Prelude.IO
2133Simon Marlow <marlowsd@gmail.com>**20100701153817
2134 Ignore-this: 73b0202876c827e7a5b4a5ce74e724c4
2135]
2136[unqualify Float and Double
2137Simon Marlow <marlowsd@gmail.com>**20100701142727
2138 Ignore-this: cbe89d31a00bf49996a33933324fca17
2139]
2140[extract information about Data.Time from docs for CTime
2141Simon Marlow <marlowsd@gmail.com>**20100701142415
2142 Ignore-this: c48c9609b8d36e43e033a7bea81d6f17
2143]
2144[doc typo
2145Simon Marlow <marlowsd@gmail.com>**20100701142354
2146 Ignore-this: 17a1fd703831c888975ff63fbfa3a9b2
2147]
2148[peekArray docs: remove mentions of "this version" and "previous version"
2149Simon Marlow <marlowsd@gmail.com>**20100701125333
2150 Ignore-this: 39a744874258670bd935ba9e38390939
2151]
2152[doc typo
2153Simon Marlow <marlowsd@gmail.com>**20100701124154
2154 Ignore-this: 98f5c286e38c2c34c96b05d5e8bc5ad9
2155]
2156[doc typo
2157Simon Marlow <marlowsd@gmail.com>**20100701124128
2158 Ignore-this: 10a4314ec7aed336701fc616fb574ebc
2159]
2160[doc typo
2161Simon Marlow <marlowsd@gmail.com>**20100701123715
2162 Ignore-this: c4909a7bf7163460ee5d32f58812041e
2163]
2164[doc wibble: Haskell 98 I/O Error -> 'IOError'
2165Simon Marlow <marlowsd@gmail.com>**20100701123612
2166 Ignore-this: bf373df781acbc575e4ffe3b7e6059ae
2167]
2168[doc typo
2169Simon Marlow <marlowsd@gmail.com>**20100701123014
2170 Ignore-this: 16aaccae48ef3101adf78ea5b0d5a8fd
2171]
2172[Haddock hacks to fix whitespace consistency
2173Simon Marlow <marlowsd@gmail.com>**20100701121631
2174 Ignore-this: 61c58dec52a31fd2d3f331a87d2f903f
2175]
2176[use '==' consistently rather than '->' in examples
2177Simon Marlow <marlowsd@gmail.com>**20100701121616
2178 Ignore-this: 472b0a05a85d34d9712186040e1636d9
2179]
2180[doc wibble: remove confusing mention of "Prelude"
2181Simon Marlow <marlowsd@gmail.com>**20100701113308
2182 Ignore-this: 232283d0096d01cd45e9b3c5c1e63a6d
2183]
2184[doc wibble: nonstrict -> non-strict
2185Simon Marlow <marlowsd@gmail.com>**20100701113253
2186 Ignore-this: 4264f0ab23a0835fc13c6e8601d6b743
2187]
2188[doc whitespace
2189Simon Marlow <marlowsd@gmail.com>**20100701112242
2190 Ignore-this: 777a95b1d1140c61d3ab95d5eb5809e7
2191]
2192[move the doc for 'Char' to its new home in ghc-prim:GHC.Types
2193Simon Marlow <marlowsd@gmail.com>**20100629134150
2194 Ignore-this: 7687db0077a29498349bfb4b44983985
2195]
2196[doc wibble
2197Simon Marlow <marlowsd@gmail.com>**20100629122608
2198 Ignore-this: 9a909e5d015332dc445bd9592e6e386d
2199]
2200[doc updates in System.IO
2201Simon Marlow <marlowsd@gmail.com>**20100629122118
2202 Ignore-this: 2257ec1cc4cdb8b7804cfa1f3cf32753
2203]
2204[doc wibble
2205Simon Marlow <marlowsd@gmail.com>**20100625134858
2206 Ignore-this: 64c50f29df6c389273b818918fe7033a
2207]
2208[doc wibbles
2209Simon Marlow <marlowsd@gmail.com>**20100624154614
2210 Ignore-this: b364aad53beea6e741fee2824459b6e8
2211]
2212[Fix haddock formatting
2213Ian Lynagh <igloo@earth.li>**20100625222623]
2214[Give nub's complexity in the haddock docs; fixes #4086
2215Ian Lynagh <igloo@earth.li>**20100625222059]
2216[correct docs for exitWith: only stdout/stderr are flushed, not all Handles
2217Simon Marlow <marlowsd@gmail.com>**20100624130506
2218 Ignore-this: 33a938dad8f0bc061572e2ec571cacc7
2219]
2220[fix docs for isSpace
2221Simon Marlow <marlowsd@gmail.com>**20100624130444
2222 Ignore-this: b35ff080dbb9833176f08e39dbd9ff6d
2223]
2224[make the hGetBuf/hPutBuf family work with non-FD Handles (#4144)
2225Simon Marlow <marlowsd@gmail.com>**20100624130425
2226 Ignore-this: 8200f0208a9b1b1cf4824f343d75819a
2227]
2228[nit in docs for accumArray
2229Simon Marlow <marlowsd@gmail.com>**20100622121131
2230 Ignore-this: c066a456c40907e767df10c3990f35ff
2231]
2232[add doc for the ExitCode type
2233Simon Marlow <marlowsd@gmail.com>**20100622120930
2234 Ignore-this: 99c34332be7f3565da844528b470054a
2235]
2236[remove extraneous info from docs for Array
2237Simon Marlow <marlowsd@gmail.com>**20100622120921
2238 Ignore-this: e2a3f5e84fc23eb7bae911f0680e805e
2239]
2240[add an INLINE to the list version of traverse, to enable fusion
2241Simon Marlow <marlowsd@gmail.com>**20100608082531
2242 Ignore-this: ea98cdc3308b406bb04c0f7a38c4424b
2243]
2244[Don't define the C localeEncoding on Windows
2245Ian Lynagh <igloo@earth.li>**20100620202342
2246 Ignore-this: c4992f6832a391b0cccc5a9b7d643976
2247 (it causes warnings, and isn't used)
2248]
2249[add Applicative instance for Either (proposal #4095)
2250Ross Paterson <ross@soi.city.ac.uk>**20100617225110
2251 Ignore-this: 50262ec4700dc16efec5755be5b308c5
2252 
2253 This is not the only possible instance for Either, but this one is
2254 compatible with the usual Monad instance.
2255]
2256[Use libcharset instead of nl_langinfo(CODESET) if possible.
2257pho@cielonegro.org**20100519013112
2258 Ignore-this: 4c1e278e022a3d276848afc1dcba4425
2259 
2260 nl_langinfo(CODESET) doesn't always return standardized variations of the encoding names. Use libcharset if possible, which is shipped together with GNU libiconv.
2261]
2262[Add a note about the interruptibility of throwTo.
2263Simon Marlow <marlowsd@gmail.com>**20100615112720
2264 Ignore-this: ae9fabe95310d7c364e95f7784793485
2265]
2266[docs: note that hGetBufNonBlocking isn't non-blocking on Windows
2267Simon Marlow <marlowsd@gmail.com>**20100615112547
2268 Ignore-this: 4f3e5213e142149affe08c5123d6efea
2269]
2270[don't depend on Prelude (#4122)
2271Simon Marlow <marlowsd@gmail.com>**20100615105631
2272 Ignore-this: 1a3fd49b103fe31cbb453f302c18767f
2273]
2274[Don't depend on Prelude (#4123)
2275Simon Marlow <marlowsd@gmail.com>**20100615105401
2276 Ignore-this: cc7616d85a1637bc7621b4f2bc181c0e
2277]
2278[bump version to 4.3.0.0, added instance MonadPlus STM
2279Simon Marlow <marlowsd@gmail.com>**20100601144831
2280 Ignore-this: 7c3cf7574499c4267372493f2636dc0
2281]
2282[Moved MonadPlus instance for STM from Control.Monad.STM to GHC.Conc to avoid an orphaned instance
2283Bas van Dijk <v.dijk.bas@gmail.com>**20100516160651
2284 Ignore-this: 651b852942b2fae2b93f996e39239b8f
2285]
2286[Added Applicative and Alternative instances for STM
2287Bas van Dijk <v.dijk.bas@gmail.com>**20100516171756
2288 Ignore-this: 567003bc4040bc97105cda4d31ebf04a
2289]
2290[expand Foldable instance for Array
2291Ross Paterson <ross@soi.city.ac.uk>**20100602212154
2292 Ignore-this: 9bd9e9666a9400431eb92352244fe7e7
2293]
2294[doc comment illustrating Foldable(foldr)
2295Ross Paterson <ross@soi.city.ac.uk>**20100527150833
2296 Ignore-this: 8f27d889379803f3ba86d6e928428f3c
2297]
2298[fix syntax in doc comments
2299Ross Paterson <ross@soi.city.ac.uk>**20100527150757
2300 Ignore-this: cb78da51d60ff6863dc395f1a892c103
2301]
2302[export hGetBufSome (#4046)
2303Simon Marlow <marlowsd@gmail.com>**20100520093538
2304 Ignore-this: f467fad9722e27edfad6b3dd75290e7b
2305]
2306[hWaitForInput: don't try to read from the device (#4078)
2307Simon Marlow <marlowsd@gmail.com>**20100517133741
2308 Ignore-this: 55ec33b03397380259b91e4ca62207a6
2309 readTextDeviceNonBlocking is not non-blocking on Windows
2310]
2311[hSetEncoding: change the encoding on both read and write sides (#4066)
2312Simon Marlow <marlowsd@gmail.com>**20100514124628
2313 Ignore-this: 5b9e9caef06356d0296c584159709ebb
2314]
2315[Correct haddock formatting.
2316Adam Vogt <vogt.adam@gmail.com>**20100423022103
2317 Ignore-this: d2622339302048fda48080f7d5ce4a2f
2318]
2319[Fix for hGetBufSome
2320Simon Marlow <marlowsd@gmail.com>**20100505135637
2321 Ignore-this: 2019680f8fb223956cacfcf0d046f133
2322]
2323[improve the documentation for throwTo and killThread (#3884)
2324Simon Marlow <marlowsd@gmail.com>**20100505135600
2325 Ignore-this: ce881d96ddb729acb6ca09c779975e7d
2326]
2327[elaborate the docs for unsafePerformIO a bit
2328Simon Marlow <marlowsd@gmail.com>**20100505101249
2329 Ignore-this: 1cec3f67560b672c64c5a0dcf9a79eb7
2330]
2331[add Typeable instance
2332Simon Marlow <marlowsd@gmail.com>**20100504152815
2333 Ignore-this: 6d9cf9d62f0ef17fa459bf213a04098
2334]
2335[Add hGetBufSome, like hGetBuf but can return short reads
2336Simon Marlow <marlowsd@gmail.com>**20100504152759
2337 Ignore-this: 195c905b43f8d9505029364e2c5b18e
2338]
2339[Add swap (#3298)
2340Simon Marlow <marlowsd@gmail.com>**20100504095339
2341 Ignore-this: 13b007dc4594ce252997ec6fa0bbd976
2342]
2343[inline allocaArray0, to fix withCString benchmark
2344Simon Marlow <marlowsd@gmail.com>**20100423124729
2345 Ignore-this: 35c96816acc2f3aaf9dd29f7995fa6f0
2346]
2347[raise asynchronous exceptions asynchronously (#3997)
2348Simon Marlow <marlowsd@gmail.com>**20100421094932
2349 Ignore-this: 6d987d93d382c0f69c68c326312abd6b
2350]
2351[add NOINLINE pragmas for stdin/stdout/stderr
2352Simon Marlow <marlowsd@gmail.com>**20100421082041
2353 Ignore-this: 3fc130268ec786f28d945858d6690986
2354]
2355[INLINE alloca and malloc
2356Simon Marlow <marlowsd@gmail.com>**20100419135333
2357 Ignore-this: b218bd611f18721b1505a8c0b9e6a16a
2358 See discussion on glasgow-haskell-users:
2359   http://www.haskell.org/pipermail/glasgow-haskell-users/2010-April/018740.html
2360]
2361[Move comment closer to the offending line
2362Matthias Kilian <kili@outback.escape.de>**20100419155421
2363 Ignore-this: b34a1d7affd66f67d210df2377b585d9
2364]
2365[Ignore the return code of c_fcntl_write again
2366Matthias Kilian <kili@outback.escape.de>**20100415140452
2367 Ignore-this: 266d8ba02cc3cb79c85629b3528261c9
2368 
2369 The return code has been ignored in the past on purpose, because
2370 O_NONBLOCK will fail on BSDs for some special files. This fixes the
2371 problem mentioned in
2372 http://www.haskell.org/pipermail/glasgow-haskell-users/2010-April/018698.html
2373 
2374]
2375[Fix bitrot in IO debugging code
2376Ian Lynagh <igloo@earth.li>**20100413134339
2377 Also switched to using Haskell Bools (rather than CPP) to en/disable it,
2378 so it shouldn't break again in the future.
2379]
2380[Tiny code tidy-up
2381Ian Lynagh <igloo@earth.li>**20100413011147]
2382[remove old/wrong comment
2383Simon Marlow <marlowsd@gmail.com>**20100325161403
2384 Ignore-this: e6e377d44af48c4162d17d55bdf3f821
2385]
2386[withThread: block asynchronous exceptions before installing exception handler.
2387Bas van Dijk <v.dijk.bas@gmail.com>**20100329131624
2388 Ignore-this: be5aeb47dbd73807b5f94df11afbb81c
2389 Note that I don't unblock the given io computation. Because AFAICS
2390 withThread is only called with 'waitFd' which only performs an FFI
2391 call which can't receive asynchronous exceptions anyway.
2392]
2393[runInUnboundThread: block asynchronous exceptions before installing exception handler
2394Bas van Dijk <v.dijk.bas@gmail.com>**20100329131549
2395 Ignore-this: a00c5e32fe3981ff87bedd367a69051e
2396]
2397[fix the deprecation message (GHC.IO.Handle.Base -> GHC.IO.Handle)
2398Simon Marlow <marlowsd@gmail.com>**20100330121137
2399 Ignore-this: 4ca8500a01ac93454507aa8f9dd001f9
2400]
2401[Make SampleVar an abstract newtype
2402Bas van Dijk <v.dijk.bas@gmail.com>**20100318200349
2403 Ignore-this: 27939e2a064b75e71cb146117346be30
2404]
2405[Fix bugs regarding asynchronous exceptions and laziness in Control.Concurrent.SampleVar
2406Bas van Dijk <v.dijk.bas@gmail.com>**20100318200104
2407 Ignore-this: 7376b2a3afe155daf233a8f1ddc0a7a
2408  - Block asynchronous exceptions at the right places
2409  - Force thunks before putting them in a MVar
2410]
2411[Write the thunk 'next' to the MVar
2412Bas van Dijk <v.dijk.bas@gmail.com>**20100319125951
2413 Ignore-this: dd25636cf220131385ff2fd32493d456
2414]
2415[change to use STM, fixing 4 things
2416Simon Marlow <marlowsd@gmail.com>**20100318104436
2417 Ignore-this: 551d30280a7941c08f5c3b14576bdd70
2418   1. there was no async exception protection
2419   2. there was a space leak (now new value is strict)
2420   3. using atomicModifyIORef would be slightly quicker, but can
2421      suffer from adverse scheduling issues (see #3838)
2422   4. also, the STM version is faster.
2423]
2424[Tweak docs
2425Ian Lynagh <igloo@earth.li>**20100312214129]
2426[Fixed dead links in documentation of forkIO
2427Bas van Dijk <v.dijk.bas@gmail.com>**20100308222415
2428 Ignore-this: 7deb8fd064c867fbede2a6b2e9da4f15
2429]
2430[Documentation fixes in Control.Exception
2431Bas van Dijk <v.dijk.bas@gmail.com>**20100301220442
2432 Ignore-this: 761fcba401cbd1f47276ddfc9b5b80f2
2433]
2434[Plug two race conditions that could lead to deadlocks in the IO manager
2435Simon Marlow <marlowsd@gmail.com>**20100225120255
2436 Ignore-this: e6983d6b953104d370278ab3e4617e8b
2437]
2438[FIX #3866: improve documentation of Data.Data.Constr
2439jpm@cs.uu.nl**20100224125506
2440 Ignore-this: 3818c5d8fee012a3cf322fb455b6e5dc
2441]
2442[UNDO: Handle NaN, -Infinity and Infinity in the toRational for Float/Double (#3676)
2443Simon Marlow <marlowsd@gmail.com>**20100223101603
2444 Ignore-this: 78becb2d39b3cd9a1a473a5811ca7d92
2445]
2446[Put the complexity in the length docs. Fixes trac #3680
2447Ian Lynagh <igloo@earth.li>**20100221191425]
2448[nhc98 should build Data.Functor.
2449Malcolm.Wallace@cs.york.ac.uk**20100221163218]
2450[Update the exitWith docs
2451Ian Lynagh <igloo@earth.li>**20100213140004
2452 Error pointed out by Volker Wysk <vw@volker-wysk.de>
2453]
2454[Handle NaN, -Infinity and Infinity in the toRational for Float/Double (#3676)
2455Simon Marlow <marlowsd@gmail.com>**20100211101955
2456 Ignore-this: 261415363303efca265e80290eac5f28
2457]
2458[For nhc98, import unsafeInterleaveIO rather than defining it here.
2459Malcolm.Wallace@cs.york.ac.uk**20100204171021]
2460[Stifle warning about unused return value
2461benl@cse.unsw.edu.au**20100203025537]
2462[fix #3832: use the locale encoding in openTempFile
2463Simon Marlow <marlowsd@gmail.com>**20100120211830
2464 Ignore-this: df4f778cc5fefb32290c798db722632c
2465 Also while I was here fix an XXX: the Handle contained an
2466 uninformative string like <fd: 4> for error messages rather than the
2467 real file path.
2468]
2469[Fix the build: export void, so it doesn't give an unused binding warning
2470Ian Lynagh <igloo@earth.li>**20100116174451]
2471[hIsEOF: don't do any decoding (#3808)
2472Simon Marlow <marlowsd@gmail.com>**20100112230317
2473 Ignore-this: 6a384dd2d547ffe3ad3762920e5c1671
2474]
2475[Control.Monad: +void :: f a -> f ()
2476gwern0@gmail.com**20100108214455
2477 Ignore-this: 4dc07452315f2d1b4941903ff42fc45f
2478 See http://hackage.haskell.org/trac/ghc/ticket/3292
2479 Turns m a -> m (). Lets one call functions for their side-effects without
2480 having to get rid of their return values with '>> return ()'. Very useful
2481 in many contexts (parsing, IO etc.); particularly good for 'forkIO' and 'forM_',
2482 as they demand return types of 'IO ()' though most interesting IO functions
2483 return non-().
2484]
2485[Replace the implementation of mergesort with a 2x faster one.
2486Malcolm.Wallace@cs.york.ac.uk**20091224152014
2487 See ticket http://hackage.haskell.org/trac/ghc/ticket/2143.
2488]
2489[Restore previous Data.Typeable.typeOf*Default implementations for non-ghc.
2490Malcolm.Wallace@cs.york.ac.uk**20091223142625
2491 Not all compilers have ScopedTypeVariables.
2492]
2493[Add comments about double bounds-checking, and fast paths for rectangular arrays
2494simonpj@microsoft.com**20091218165655
2495 Ignore-this: ea0849419dc00927aba4bd410b1cc58d
2496 
2497 See Note [Double bounds-checking of index values] for the details.
2498 
2499 The fast paths omit the doubled checks for cases we know about
2500]
2501[Fix Trac #3245: memoising typeOf
2502simonpj@microsoft.com**20091218155117
2503 Ignore-this: 5a178a7f2222293c5ee0c3c43bd1b625
2504 
2505 The performance bug in #3245 was caused by computing the typeRep
2506 once for each call of typeOf, rather than once for each dictionary
2507 contruction.  (Computing TypeReps is reasonably expensive, because
2508 of the hash-consing machinery.)
2509 
2510 This is readily fixed by putting the TypeRep construction outside
2511 the lambda.  (Arguably GHC might have worked that out itself,
2512 but it involves floating something between a type lambda and a
2513 value lambda, which GHC doesn't currently do. If it happens a lot
2514 we could fix that.)
2515]
2516[Mark 'index' as INLINE in GHC.Arr
2517simonpj@microsoft.com**20091216170441
2518 Ignore-this: a4df9d8acf496c8e0e9ce5a520509a2a
2519 
2520 This makes indexing much faster. See Trac #1216
2521]
2522[Comment the remaining orphan instance modules
2523Ian Lynagh <igloo@earth.li>**20091206125021]
2524[De-orphan Eq/Ord Float/Double
2525Ian Lynagh <igloo@earth.li>**20091205181238]
2526[Add comments to "OPTIONS_GHC -fno-warn-orphans" pragmas
2527Ian Lynagh <igloo@earth.li>**20091205165854]
2528[Data.Either.partitionEithers was insufficiently lazy.
2529Malcolm.Wallace@cs.york.ac.uk**20091202032807
2530 Ignore-this: 77e1b3288f66608c71458d8a91bcbe12
2531 Spotted by Daniel Fischer.
2532]
2533[fix the docs regarding finalizer guarantees
2534Simon Marlow <marlowsd@gmail.com>**20091130144409
2535 Ignore-this: d1ab9532c74a002b8075ff60febcbe2d
2536]
2537[x86_64 requires more stack
2538Malcolm.Wallace@cs.york.ac.uk**20091201033745]
2539[check for size < 0 in mallocForeignPtrBytes and friends (#3514)
2540Simon Marlow <marlowsd@gmail.com>**20091125143822
2541 Ignore-this: 91077d01da2bbe1dfed5155e8b40da9
2542]
2543[hGetContents: close the handle properly on error
2544Simon Marlow <marlowsd@gmail.com>**20091125123435
2545 Ignore-this: bc37ff678acc6e547dc390285e056eb9
2546 
2547 When hGetContents caught an error it was closing the handle and then
2548 throwing the exception, without updating the handle with the new
2549 closed state.  This lead to a double-closed, which was the cause of
2550 
2551 *** glibc detected *** ./Setup: double free or corruption
2552 
2553 when iconv_close was called twice on the decoder.
2554 
2555 See http://hackage.haskell.org/trac/hackage/ticket/609
2556]
2557[Fix arities of mapFB and zipFB
2558Roman Leshchinskiy <rl@cse.unsw.edu.au>**20091126232219
2559 Ignore-this: c4e14cd0a92622549c86e67237a40865
2560]
2561[Remove an unnecessary -fno-warn-orphans flag
2562Ian Lynagh <igloo@earth.li>**20091126123404]
2563[Tweak layout to work with alternative layout rule
2564Ian Lynagh <igloo@earth.li>**20091125232349]
2565[Tweak layout to be accepted by the alternative layout rul
2566Ian Lynagh <igloo@earth.li>**20091125194147]
2567[Make sure zipWithFB has arity 2
2568Roman Leshchinskiy <rl@cse.unsw.edu.au>**20091125010003
2569 Ignore-this: 4cf60c55666f03d22a9f5a6e07f52d36
2570 
2571 It gets 2 arguments in the "zipWith" rule but its arity was higher and the new
2572 inliner didn't inline it sometimes, for instance here:
2573 
2574 mpp ::  [Double] -> [Double] -> [Double] -> [Double] -> [Double]
2575 mpp as bs cs ds = zipWith (*) (zipWith (+) as bs) (zipWith (+) cs ds)
2576 
2577 This was a regression vs. 6.10.
2578]
2579[Remove an old comment
2580Ian Lynagh <igloo@earth.li>**20091124134647]
2581[De-orphan the Eq/Ord Integer instances
2582Ian Lynagh <igloo@earth.li>**20091124133639]
2583[Whitespace only
2584Ian Lynagh <igloo@earth.li>**20091124133421]
2585[Derive some more instances, rather than writing them by hand
2586Ian Lynagh <igloo@earth.li>**20091124011747]
2587[We can now derive Ord ()
2588Ian Lynagh <igloo@earth.li>**20091124011416]
2589[De-orphan tuple Eq/Ord instances
2590Ian Lynagh <igloo@earth.li>**20091123233343]
2591[Control.Exception.Base no longer has any orphans
2592Ian Lynagh <igloo@earth.li>**20091123224905]
2593[De-orphan the MonadFix ST instance for GHC
2594Ian Lynagh <igloo@earth.li>**20091123223544]
2595[Rearrange the contents of Control.Monad.ST; no functionality changes
2596Ian Lynagh <igloo@earth.li>**20091123222702]
2597[De-orphan the Eq/Ord [a] instances
2598Ian Lynagh <igloo@earth.li>**20091123215635]
2599[De-orphan the Eq/Ord Char instances
2600Ian Lynagh <igloo@earth.li>**20091123202253]
2601[De-orphan the Eq/Ord Bool instances
2602Ian Lynagh <igloo@earth.li>**20091123201817]
2603[Move Eq/Ord Ordering instances to de-orphan them
2604Ian Lynagh <igloo@earth.li>**20091123194310]
2605[Remove ffi warnings for nhc98.
2606Malcolm.Wallace@cs.york.ac.uk**20091123063743]
2607[Second attempt to fix #1185 (forkProcess and -threaded)
2608Simon Marlow <marlowsd@gmail.com>**20091111151915
2609 Ignore-this: fa5f5d5e4e080d4b612a37244f937f9c
2610 
2611 Patch 2/2: first patch is to ghc
2612 
2613 This time without dynamic linker hacks, instead I've expanded the
2614 existing rts/Globals.c to cache more CAFs, specifically those in
2615 GHC.Conc.  We were already using this trick for signal handlers, I
2616 should have realised before.
2617 
2618 It's still quite unsavoury, but we can do away with rts/Globals.c in
2619 the future when we switch to a dynamically-linked GHCi.
2620]
2621[Rollback #1185 fix
2622Simon Marlow <marlowsd@gmail.com>**20091106140629
2623 Ignore-this: cd5667e8474e37e01ba26a1984274811
2624 
2625 rolling back:
2626 
2627 Tue Nov  3 16:05:40 GMT 2009  Simon Marlow <marlowsd@gmail.com>
2628   * Fix #1185: restart the IO manager after fork()
2629   
2630   This is the libraries/base part of the patch; there is a corresponding
2631   patch to GHC itself.
2632   
2633   The main change is that we now keep track of the IO manager's ThreadId
2634   in a top-level MVar, and ensureIOManagerIsRunning checks whether a
2635   previous IO manager thread is alive before starting one.  In the child
2636   of fork(), we can hence call ensureIOManagerIsRunning to restart the
2637   IO manager.
2638 
2639     M ./GHC/Conc.lhs -46 +44
2640 
2641 Wed Nov  4 17:49:45 GMT 2009  Ian Lynagh <igloo@earth.li>
2642   * Fix the build on Windows
2643 
2644     M ./GHC/Conc.lhs -6 +4
2645]
2646[Fix the build on Windows
2647Ian Lynagh <igloo@earth.li>**20091104174945]
2648[Fix #1185: restart the IO manager after fork()
2649Simon Marlow <marlowsd@gmail.com>**20091103160540
2650 Ignore-this: 6dc05464f1500104554637f4759738cc
2651 
2652 This is the libraries/base part of the patch; there is a corresponding
2653 patch to GHC itself.
2654 
2655 The main change is that we now keep track of the IO manager's ThreadId
2656 in a top-level MVar, and ensureIOManagerIsRunning checks whether a
2657 previous IO manager thread is alive before starting one.  In the child
2658 of fork(), we can hence call ensureIOManagerIsRunning to restart the
2659 IO manager.
2660]
2661[improve the documentation for throwErrnoIfRetry
2662Simon Marlow <marlowsd@gmail.com>**20091016112404
2663 Ignore-this: b77275cacf730e15757946027168f63e
2664]
2665[Don't inline unpackFoldrCString ever
2666simonpj@microsoft.com**20091029135350
2667 Ignore-this: 85d672649b1b776efc7e97500b05d4f9
2668]
2669[Inline more default methods
2670simonpj@microsoft.com**20091029135330
2671 Ignore-this: 289c44b0afd6d5631c2a4e0664275ca9
2672 
2673 Namely Monad: (>>)
2674        Eq:    (==), (/=)
2675        Num:   (-), negate
2676        Real:  quot, rem, div, mod, recip, (/), truncate
2677        Float: (**), logBase, sqrt, tan, tanh
2678]
2679[Move error messages out of INLINEd default methods
2680simonpj@microsoft.com**20091029135118
2681 Ignore-this: 9e35dc947f94827a3529eb53a41575fd
2682 
2683 No need to duplicate the error generation!
2684]
2685[Exploit now-working default-method INLINE pragmas for Data.Bits
2686simonpj@microsoft.com**20091029135041
2687 Ignore-this: 8adf225f31ca7a3181ee087e9e4fe535
2688 
2689 * Add INLINE pragmas to default methods for class Bits
2690 
2691 * Remove redundant instance methods elsewhere, now that
2692   the default method will do the job
2693]
2694[Tidy up and comment imports
2695simonpj@microsoft.com**20091029134414
2696 Ignore-this: bf2be31035de975d8995e988933cc940
2697]
2698[Inline foldr and (.) when applied to two arguments not three
2699simonpj@microsoft.com**20091029134335
2700 Ignore-this: fccb6f3e90e15f44cb465814be85ede2
2701 
2702 The new INLINE story is (by design) arity-sensitive, so we must
2703 put fewer argument on the LHS for foldr and (.)
2704]
2705[dirUtils.c no longer available
2706Malcolm.Wallace@cs.york.ac.uk**20091013093833]
2707[Make hGetContents throw an exception if an error is encountered
2708Simon Marlow <marlowsd@gmail.com>**20091012152955
2709 Ignore-this: 9f7a7176193eab25c9daaacd9261f2de
2710 
2711 Strictly speaking this breaks Haskell 98 compatibility, which requires
2712 hGetContents to just end the lazy stream silently if an error is
2713 encountered.  However, for a few reasons we think it will make
2714 everyone's life a bit easier if we make this change
2715 
2716  1. Errors will be a lot more common in GHC 6.12.1, in the form
2717     of Unicode decoding errors.
2718 
2719  2. When Haskell 98 was designed, we didn't know how to throw
2720     exceptions from inside lazy I/O, but now we do.
2721 
2722  3. If anyone is actually relying on the previous behaviour, their
2723     code is arguably broken.
2724]
2725[Re-instate System.Console.Getopt for nhc98 builds.
2726Malcolm.Wallace@cs.york.ac.uk**20091013092843
2727 Although it was split out of base a while back, that change was
2728 reverted for ghc soon afterwards, but nhc98 never noticed.
2729]
2730[Roll back "Another instance of nhc98's strange import semantics."
2731Ian Lynagh <igloo@earth.li>**20091009185618
2732 Fri Oct  9 14:50:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
2733 GHC (correctly) warns about the unused import, which breaks the validate
2734 build.
2735]
2736[Roll back "Cope with nhc98's (occasionally-strange) import semantics"
2737Ian Lynagh <igloo@earth.li>**20091009184704
2738 Fri Oct  9 14:43:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
2739 GHC (correctly) warns about the unused import, which breaks the validate
2740 build.
2741]
2742[It seems that nhc98 needs defaulting in Data.Fixed.
2743Malcolm.Wallace@cs.york.ac.uk**20091009135242]
2744[Another instance of nhc98's strange import semantics.
2745Malcolm.Wallace@cs.york.ac.uk**20091009135051]
2746[Make Data.Functor compatible with non-GHC compilers.
2747Malcolm.Wallace@cs.york.ac.uk**20091009134821]
2748[Cope with nhc98's (occasionally-strange) import semantics.
2749Malcolm.Wallace@cs.york.ac.uk**20091009134351]
2750[Fix gratuitous breakage of nhc98 in System.IO.
2751Malcolm.Wallace@cs.york.ac.uk**20091009134001]
2752[Fix gratuitous breakage of nhc98 in Control.Exception.Base.
2753Malcolm.Wallace@cs.york.ac.uk**20091009133615]
2754[Fix gratuitous breakage of non-GHC in Data.Fixed.
2755Malcolm.Wallace@cs.york.ac.uk**20091009133330]
2756[Fix gratuitous breakage for non-GHC in Data.Bits.
2757Malcolm.Wallace@cs.york.ac.uk**20091009133257]
2758[Use UTF-32LE instead of UTF32LE
2759Simon Marlow <marlowsd@gmail.com>**20091006100207
2760 Ignore-this: 7f881e36543d250ef848c9f60d67655a
2761 The latter is not recognised by some iconv implementations.
2762]
2763[Strip any Byte Order Mark (BOM) from the front of decoded streams.
2764Ben.Lippmeier@anu.edu.au*-20090930084229
2765 Ignore-this: d0d0c3ae87b31d71ef1627c8e1786445
2766 When decoding to UTF-32, Solaris iconv inserts a BOM at the front
2767 of the stream, but Linux iconv doesn't.
2768]
2769[use UTF32BE/UTF32LE instead of UCS-4/UCS-4LE
2770Simon Marlow <marlowsd@gmail.com>**20091005101554
2771 Ignore-this: 2aef5e9bec421e714953b7aa1bdfc1b3
2772]
2773[Strip any Byte Order Mark (BOM) from the front of decoded streams.
2774Ben.Lippmeier@anu.edu.au**20090930084229
2775 Ignore-this: d0d0c3ae87b31d71ef1627c8e1786445
2776 When decoding to UTF-32, Solaris iconv inserts a BOM at the front
2777 of the stream, but Linux iconv doesn't.
2778]
2779[Add traceEvent :: String -> IO ()
2780Simon Marlow <marlowsd@gmail.com>**20090925141257
2781 Ignore-this: 8b1888bbf9682ffba13f815b6000e4b1
2782 For emitting an event via the RTS tracing framework
2783]
2784[Fix the error message when flushing the read buffer of a non-seekable Handle
2785Simon Marlow <marlowsd@gmail.com>**20090923090536
2786 Ignore-this: 4342026df93759d99480f4e13f80a492
2787]
2788[Fix #3534: No need to flush the byte buffer when setting binary mode
2789Simon Marlow <marlowsd@gmail.com>**20090923090445
2790 Ignore-this: 625817ed7ae2c12291eb993a99dc640a
2791]
2792[Use let !y = x in .. x .. instead of seq in $! and evaluate (#2273)
2793Simon Marlow <marlowsd@gmail.com>**20090916140454]
2794[make some Applicative functions into methods, and split off Data.Functor (proposal #3335)
2795Ross Paterson <ross@soi.city.ac.uk>**20090915173109
2796 Ignore-this: a0cff4de6dfdbcbd56a66101bc4855a9
2797 
2798 The following functions
2799 
2800     (<$) :: Functor f => a -> f b -> f a
2801     (*>) :: Applicative f => f a -> f b -> f b
2802     (<*) :: Applicative f => f a -> f b -> f a
2803     some :: Alternative f => f a -> f [a]
2804     many :: Alternative f => f a -> f [a]
2805 
2806 are moved into the corresponding classes, with the existing implementations
2807 as default definitions.  This gives people creating instances the option of
2808 defining specialized implementations of these functions, though they should
2809 be equivalent to the default definitions.
2810 
2811 Although (<$) is now a method of the Functor class, it is hidden in the
2812 re-export by the Prelude, Control.Monad and Monad.  The new module
2813 Data.Functor exposes the full class, plus the function (<$>).  These are
2814 also re-exported by Control.Applicative.
2815]
2816[On Windows, use the console code page for text file encoding/decoding.
2817Judah Jacobson <judah.jacobson@gmail.com>**20090913022126
2818 Ignore-this: 86c2f2db8ef92b751599795d3195187b
2819 
2820 We keep all of the code page tables in the module
2821 GHC.IO.Encoding.CodePage.Table.  That file was generated automatically
2822 by running codepages/MakeTable.hs; more details are in the comments at the
2823 start of that script.
2824 
2825 Storing the lookup tables adds about 40KB to each statically linked executable;
2826 this only increases the size of a "hello world" program by about 7%.
2827 
2828 Currently we do not support double-byte encodings (Chinese/Japanese/Korean), since
2829 including those codepages would increase the table size to 400KB.  It will be
2830 straightforward to implement them once the work on library DLLs is finished.
2831]
2832[Fix "init" docs: the input list need not be finite. Fixes trac #3465
2833Ian Lynagh <igloo@earth.li>**20090911210437]
2834[Bump base version to 4.2.0.0
2835Ian Lynagh <igloo@earth.li>**20090911153913]
2836[Address #3310
2837Simon Marlow <marlowsd@gmail.com>**20090830152850
2838 Ignore-this: 40c7f7c171ee299a83092fd360a952b7
2839 
2840  - Rename BlockedOnDeadMVar   -> BlockedIndefinitelyOnMVar
2841  - Rename BlockedIndefinitely -> BlockedIndefinitelyOnSTM
2842  - instance Show BlockedIndefinitelyOnMVar is now
2843      "blocked indefinitely in an MVar operation"
2844  - instance Show BlockedIndefinitelyOnSTM is now
2845      "blocked indefinitely in an STM transaction"
2846 
2847 clients using Control.OldException will be unaffected (the new
2848 exceptions are mapped to the old names).  However, for base4-compat
2849 we'll need to make a version of catch/try that does a similar
2850 mapping.
2851]
2852[Fix unicode conversion for MSB architectures
2853Ben.Lippmeier@anu.edu.au**20090830130028
2854 This fixes the SPARC/Solaris build.
2855]
2856[Fix #3441: detect errors in partial sequences
2857Simon Marlow <marlowsd@gmail.com>**20090830075909
2858 Ignore-this: d12a75d95e0cae5eb1555266810ec281
2859]
2860[Fix hWaitForInput
2861Simon Marlow <marlowsd@gmail.com>**20090827152116
2862 Ignore-this: 2550e911f1a4d4357a5aa8d1764238ce
2863 It was erroneously waiting when there were bytes to decode waiting in
2864 the byte buffer.
2865]
2866[fix debugging code
2867Simon Marlow <marlowsd@gmail.com>**20090827150628
2868 Ignore-this: e1c82fdc19a22e247cd69ff6fa11921d
2869]
2870[Allow for configurable iconv include and library locations.
2871Matthias Kilian <kili@outback.escape.de>**20090826154406
2872 Ignore-this: be95fab611a5534cf184b508964ed498
2873 This should help to fix the build on OpenBSD.
2874]
2875[typo in comment
2876Simon Marlow <marlowsd@gmail.com>**20090826085252
2877 Ignore-this: 1903ee0f354157a6ed3871c100f6b1b9
2878]
2879[un-hide some modules from the Haddock docs
2880Simon Marlow <marlowsd@gmail.com>**20090825152457
2881 Ignore-this: dce6606f93cf977fb24ebe99082dfa62
2882]
2883[Apply fix for #1548, from squadette@gmail.com
2884Simon Marlow <marlowsd@gmail.com>**20090819120700
2885 Ignore-this: 31c237c46a6445f588ed4b8c51bb6231
2886]
2887[improvements to Data.Fixed: instances for Typeable and Data, more predefined types
2888Ashley Yakeley <ashley@semantic.org>**20090812055058
2889 Ignore-this: feeece36d5632f02a05d137d2a39ab78
2890]
2891[Fix "Cabal check" warnings
2892Ian Lynagh <igloo@earth.li>**20090811215856]
2893[Add a GHC.Constants module; fixes trac #3094
2894Ian Lynagh <igloo@earth.li>**20090809183252]
2895[Apply proposal #3393
2896Ian Lynagh <igloo@earth.li>**20090809134717
2897 Add openTempFileWithDefaultPermissions and
2898 openBinaryTempFileWithDefaultPermissions.
2899]
2900[Add some more C wrappers; patch from Krister Walfridsson
2901Ian Lynagh <igloo@earth.li>**20090807200631
2902 Fixes 21 testsuite errors on NetBSD 5.99.
2903]
2904[Fixing configure for autoconf 2.64
2905Alexander Dunlap <alexander.dunlap@gmail.com>**20090805060748
2906 Ignore-this: 992ab91ae3d68c12dbb265776e33e243
2907]
2908[add INLINE toList
2909Ross Paterson <ross@soi.city.ac.uk>**20090806142853
2910 Ignore-this: aba16aabb17d5dca44f15d188945680e
2911 
2912 In anticipation of the fixing of #2353.
2913]
2914[fix a copyright
2915Simon Marlow <marlowsd@gmail.com>**20090805134045
2916 Ignore-this: b0ffbdd38fbba121e8bcba37c4082a60
2917]
2918[Tweak the BufferedIO class to enable a memory-mapped file implementation
2919Simon Marlow <marlowsd@gmail.com>**20090805134036
2920 Ignore-this: ec67d7a0a6d977438deaa342503f77e0
2921 We have to eliminate the assumption that an empty write buffer can be
2922 constructed by setting the buffer pointers to zero: this isn't
2923 necessarily the case when the buffer corresponds to a memory-mapped
2924 file, or other in-memory device implementation.
2925]
2926[Deprecate Control.OldException
2927Ian Lynagh <igloo@earth.li>**20090804143910]
2928[Windows build fix, following RTS tidyup
2929Simon Marlow <marlowsd@gmail.com>**20090803131121
2930 Ignore-this: ce862fb91c2b234211a8757f98690778
2931]
2932[Updates to follow the RTS tidyup
2933Simon Marlow <marlowsd@gmail.com>**20090801220743
2934 Ignore-this: 6e92412df93a66c12d75344053d5634
2935 C functions like isDoubleNaN moved here (primFloat.c)
2936]
2937[Add integer-simple as a build option
2938Ian Lynagh <igloo@earth.li>**20090722013151]
2939[Use shift[LR]Integer in the Bits Integer instance
2940Ian Lynagh <igloo@earth.li>**20090721222440]
2941[depend directly on integer-gmp, rather than indirecting through integer
2942Ian Lynagh <igloo@earth.li>**20090721185228]
2943[Move the instances of Functor and Monad IO to GHC.Base, to avoid orphans
2944Simon Marlow <marlowsd@gmail.com>**20090722102130
2945 Ignore-this: a7d85ac0025d559674249de0108dbcf4
2946]
2947[move "instance Exception Dynamic" so it isn't an orphan
2948Simon Marlow <marlowsd@gmail.com>**20090721093854
2949 Ignore-this: 5ede91ecfec2112c91b699d4de87cd02
2950]
2951[Improve the index checking for array accesses; fixes #2120 #2669
2952Ian Lynagh <igloo@earth.li>**20090719153228
2953 As well as checking that offset we are reading is actually inside the
2954 array, we now also check that it is "in range" as defined by the Ix
2955 instance. This fixes confusing behaviour (#2120) and improves some error
2956 messages (#2669).
2957]
2958[Make chr say what its argument was, if it's a bad argument
2959Ian Lynagh <igloo@earth.li>**20090718151049]
2960[remove unused warning
2961Simon Marlow <marlowsd@gmail.com>**20090715124416
2962 Ignore-this: 31f613654089d0f4a44363946087b41e
2963]
2964[warning fix: -fno-implicit-prelude -> -XNoImplicitPrelude
2965Simon Marlow <marlowsd@gmail.com>**20090715122839
2966 Ignore-this: dc8957249731d5bcb71c01899e5adf2b
2967]
2968[Add hGetEncoding :: Handle -> IO (Maybe TextEncoding)
2969Simon Marlow <marlowsd@gmail.com>**20090715122519
2970 Ignore-this: 14c3eff996db062da1199739781e4708
2971 as suggested during the discussion on the libraries list
2972]
2973[Add more documentation to mkTextEncoding
2974Simon Marlow <marlowsd@gmail.com>**20090715122414
2975 Ignore-this: 97253b2624267df3a246a18121e8ea81
2976 noting that "//IGNORE" and "//TRANSLIT" suffixes can be used with GNU
2977 iconv.
2978]
2979[Add the utf8_bom codec
2980Simon Marlow <marlowsd@gmail.com>**20090715122257
2981 Ignore-this: 1c9396cd805201fe873a39382ced79c7
2982 as suggested during the discussion on the libraries list.
2983]
2984[Export Unicode and newline functionality from System.IO; update Haddock docs
2985Simon Marlow <marlowsd@gmail.com>**20090713113104
2986 Ignore-this: c3f017a555335aa55d106253393f72e2
2987]
2988[add a comment about the non-workingness of CHARBUF_UTF16
2989Simon Marlow <marlowsd@gmail.com>**20090707124406
2990 Ignore-this: 98d00411b68d688b3b4cffc9507b1f35
2991]
2992[Fix build on Windows
2993Ian Lynagh <igloo@earth.li>**20090711004351]
2994[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
2995Ian Lynagh <igloo@earth.li>**20090710204513]
2996[Use throwErrnoIfMinus1_ when calling getrusage
2997Ian Lynagh <igloo@earth.li>**20090710204221]
2998[Remove an unused import
2999Ian Lynagh <igloo@earth.li>**20090710153345]
3000[reportStackOverflow now returns IO ()
3001Ian Lynagh <igloo@earth.li>**20090710153257
3002 It used to do "return undefined" to return IO a.
3003]
3004[GHC.Conc.reportError now returns IO ()
3005Ian Lynagh <igloo@earth.li>**20090710152646
3006 It used to return IO a, by "return undefined".
3007]
3008[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
3009Ian Lynagh <igloo@earth.li>**20090710152526]
3010[Minor SampleVar refactoring
3011Ian Lynagh <igloo@earth.li>**20090710151438]
3012[Fix "warn-unused-do-bind" warnings in GHC/IO/Handle/Text.hs
3013Ian Lynagh <igloo@earth.li>**20090710122905]
3014[Fix some "warn-unused-do-bind" warnings where we just want to ignore the result
3015Ian Lynagh <igloo@earth.li>**20090710005638]
3016[Use the result of writeCharBuf in GHC/IO/Encoding/Latin1.hs too
3017Ian Lynagh <igloo@earth.li>**20090710004032]
3018[Minor code tidyups in GHC.Conc
3019Ian Lynagh <igloo@earth.li>**20090710003801]
3020[Fix "warn-unused-do-bind" warning in GHC.Conc
3021Ian Lynagh <igloo@earth.li>**20090710003530
3022 If we fail to communicate with the IO manager then we print a warning
3023 using debugErrLn from the ghc-prim package.
3024]
3025[Fix "warn-unused-do-bind" warnings in System.Posix.Internals
3026Ian Lynagh <igloo@earth.li>**20090709164546]
3027[Fix "warn-unused-do-bind" warnings where we really do want to ignore the result
3028Ian Lynagh <igloo@earth.li>**20090709163912]
3029[Add back imports needed on Windows
3030Ian Lynagh <igloo@earth.li>**20090707181924]
3031[Remove unused imports
3032Ian Lynagh <igloo@earth.li>**20090707115810]
3033[Remove unused imports from base
3034simonpj@microsoft.com**20090706111842
3035 Ignore-this: f9b5f353e3bb820f787c56d615b28765
3036 
3037 These unused imports are detected by the new unused-import code
3038 
3039]
3040[Use the result of writeCharBuf
3041Simon Marlow <marlowsd@gmail.com>**20090706133303
3042 Ignore-this: 52288dd559bf4c4f313df6197091d935
3043   
3044 This only makes a difference when CHARBUF_UTF16 is in use, which it
3045 normally isn't.  I suspect CHARBUF_UTF16 doesn't currently work for
3046 other reasons (CHARBUF_UTF16 was an experiment before I wrote the
3047 GHC.IO.Encoding.UTF* codecs), but this patch at least makes it
3048 slightly closer to working.
3049]
3050[Remove some cruft from Data.HashTable
3051Ian Lynagh <igloo@earth.li>**20090706181630]
3052[Add 'eof' to Text.ParserCombinators.ReadP
3053simonpj@microsoft.com**20090706111801
3054 Ignore-this: 2aea7b848e00c894761bc4011adaa95d
3055 
3056 Add a ReadP parser that succeeds at the end of input. Very useful!
3057 
3058]
3059[Don't export CLDouble for GHC; fixes trac #2793
3060Ian Lynagh <igloo@earth.li>**20090705155120
3061 We never really supported CLDouble (it was a plain old double underneath),
3062 and pretending that we do does more harm than good.
3063]
3064[a byte between 0x80 and 0xBF is illegal immediately (#3341)
3065Simon Marlow <marlowsd@gmail.com>**20090702081415
3066 Ignore-this: dc19ef59a1a21118d5a7dd38aa2f611c
3067]
3068[avoid a warning
3069Simon Marlow <marlowsd@gmail.com>**20090630084134
3070 Ignore-this: c92a45ee216faf01327feae9fe06d6e2
3071]
3072[Add a wrapper for libiconv.
3073Matthias Kilian <kili@outback.escape.de>**20090629183634
3074 Ignore-this: 23c6047c0d71b745b495cc223574a47f
3075]
3076[#include <sys/times.h> if we have it (should fix build problems)
3077Simon Marlow <marlowsd@gmail.com>**20090629085351
3078 Ignore-this: a35e93b37ca9595c73460243180f4b9d
3079]
3080[set binary mode for existing FDs on Windows (fixes some GHCi test failures)
3081Simon Marlow <marlowsd@gmail.com>**20090626120522
3082 Ignore-this: 580cf636e9c77d8427aff6861d089481
3083]
3084[Move directory-related stuff to the unix package
3085Simon Marlow <marlowsd@gmail.com>**20090625120325
3086 Ignore-this: b997b3cbce0a46ca87ad825bbdc0a411
3087 now that it isn't used on Windows any more.
3088]
3089[TAG 2009-06-25
3090Ian Lynagh <igloo@earth.li>**20090625160056]
3091Patch bundle hash:
309279a3d2607862cc8f502ed283eee2835ecbf47f83