summaryrefslogtreecommitdiff
path: root/docs/users_guide/6.12.1-notes.xml
blob: e2c8884fc9fdfbbf89edd560afdfadaf499e649e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
<?xml version="1.0" encoding="iso-8859-1"?>
<sect1 id="release-6-12-1">
  <title>Release notes for version 6.12.1</title>

  <para>
    The significant changes to the various parts of the compiler are
    listed in the following sections. There have also been numerous bug
    fixes and performance improvements over the 6.10 branch.
  </para>

  <sect2>
    <title>Language changes</title>
    <itemizedlist>
      <listitem>
        <para>
          The new <literal>TupleSections</literal> language extension
          enables tuple sections, such as <literal>(, True)</literal>.
          See <xref linkend="tuple-sections" /> for more information.
        </para>
      </listitem>

      <listitem>
        <para>
          The new <literal>MonoLocalBinds</literal> language extension
          disables type variable generalisation for bindings in
          <literal>let</literal> and <literal>where</literal> clauses.
        </para>
      </listitem>

      <listitem>
        <para>
          The new <literal>DeriveFunctor</literal>,
          <literal>DeriveFoldable</literal> and
          <literal>DeriveTraversable</literal> language extensions
          enable deriving for the respective type classes.
          See <xref linkend="deriving-typeable" /> for more information.
        </para>
      </listitem>

      <listitem>
        <para>
          The new <literal>NoNPlusKPatterns</literal> language extension
          disables <literal>n+k</literal> patterns.
          See <xref linkend="n-k-patterns" /> for more information.
        </para>
      </listitem>

      <listitem>
        <para>
          Some improvements have been made to record puns:
        </para>
        <itemizedlist>
          <listitem>
            <para>
              <literal>C { A.a }</literal> now works, expanding to
              <literal>C { A.a = a }</literal>.
            </para>
          </listitem>

          <listitem>
            <para>
              <literal>-fwarn-unused-matches</literal> no longer
              warns about bindings introduced by
              <literal>f (C {..}) = x</literal>.
            </para>
          </listitem>

          <listitem>
            <para>
              The <literal>RecordWildCards</literal> language
              extension implies
              <literal>DisambiguateRecordFields</literal>.
            </para>
          </listitem>
        </itemizedlist>
      </listitem>

      <listitem>
        <para>
          Declarations such as
        </para>
<programlisting>
data T a where
    MkT :: forall a. Eq a => { x,y :: !a } -> T a
</programlisting>
        <para>
          are now only accepted if the extension
          <literal>TypeOperators</literal> is on.
        </para>
      </listitem>

      <listitem>
        <para>
          It is now possible to define GADT records with class
          constraints. The syntax is:
        </para>
<programlisting>
data T a where
    MkT :: forall a. Eq a => { x,y :: !a } -> T a
</programlisting>
      </listitem>

      <listitem>
        <para>
          You can now list multiple GADT constructors with the same type,
          e.g.:
        </para>
<programlisting>
data T where
    A, B :: T
    C :: Int -> T
</programlisting>
      </listitem>

      <listitem>
        <para>
          It is now possible to use GADT syntax for data families:
        </para>
<programlisting>
data instance T [a] where
    T1 :: a -> T [a]
</programlisting>
        <para>
          and make data instances be GADTs:
        </para>
<programlisting>
data instance T [a] where
    T1 :: Int -> T [Int]
    T2 :: a -> b -> T [(a,b)]
</programlisting>
      </listitem>

      <listitem>
        <para>
          Record updates can now be used with datatypes containing
          existential type variables, provided the fields being altered
          do not mention the existential types.
        </para>
      </listitem>

      <listitem>
        <para>
          The <literal>ImpredicativeTypes</literal> extension now imples
          the <literal>RankNTypes</literal> extension.
        </para>
      </listitem>

      <listitem>
        <para>
          The <literal>ImpredicativeTypes</literal> extension is no
          longer enabled by <literal>-fglasgow-exts</literal>.
        </para>
      </listitem>

      <listitem>
        <para>
          You can now give multi-line <literal>DEPRECATED</literal> and
          <literal>WARNING</literal> pragmas:
        </para>
<programlisting>
{-# DEPRECATED defaultUserHooks
     ["Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2"
     , "compatibility in which case you must stick with defaultUserHooks"]
  #-}
</programlisting>
      </listitem>

      <listitem>
        <para>
          The <literal>-#include</literal> flag and
          <literal>INCLUDE</literal> pragma are now deprecated and
          ignored. GHC now generates its own C prototypes, rather than
          relying on C prototypes.
        </para>
      </listitem>

      <listitem>
        <para>
          The <literal>threadsafe</literal> foreign import safety level
          is now deprecated; use <literal>safe</literal> instead.
        </para>
      </listitem>

      <listitem>
        <para>
          There is a new FFI calling convention called
          <literal>prim</literal>, which allows calling C-- function.
          Most users are not expected to need this.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>Warnings</title>
    <itemizedlist>
      <listitem>
        <para>
          A warning is now emitted if an unlifted type is bound in a
          lazy pattern (in <literal>let</literal> or
          <literal>where</literal> clause, or in an irrefutable pattern)
          unless it is inside a bang pattern.
          This warning is controlled by the
          <literal>-fwarn-lazy-unlifted-bindings</literal> flag.
          In a future version of GHC this will be an error.
        </para>
      </listitem>

      <listitem>
        <para>
          There are two new warnings if a monadic result of type other than
          <literal>m ()</literal> is used in a <literal>do</literal>
          block, but its result is not bound.
          The flags <literal>-fwarn-unused-do-bind</literal>
          and <literal>-fwarn-wrong-do-bind</literal> control
          these warnings.
        </para>
      </listitem>

      <listitem>
        <para>
          There is a new warning if a monadic result of type other than
          <literal>m ()</literal> is not bound.
          The flag <literal>-fwarn-unused-do-bind</literal> controls
          this warning.
        </para>
      </listitem>

      <listitem>
        <para>
          The new flag <literal>-fwarn-dodgy-exports</literal> controls
          whether an error is given for exporting a type synonym as
          <literal>T(..)</literal>.
        </para>
      </listitem>

      <listitem>
        <para>
          Name shadowing warnings are no longer given for variable names
          beginning with an underscore.
        </para>
      </listitem>

      <listitem>
        <para>
          When <literal>-Werror</literal> is given, we now pass
          <literal>-Werror</literal> to <literal>cpp</literal>.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>Runtime system</title>
    <itemizedlist>
      <listitem>
        <para>
          The flag <literal>+RTS -N</literal> now automatically
          determines how many threads to use, based on the number
          of CPUs in your machine.
        </para>
      </listitem>

      <listitem>
        <para>
          The new flag <literal>+RTS -q1</literal> disables the parallel
          garbage collector.
        </para>
      </listitem>

      <listitem>
        <para>
          The new flag
          <literal>+RTS -qg<replaceable>n</replaceable></literal>
          sets the minimum generation for which parallel garbage
          collection is used. Defaults to 1.
        </para>
      </listitem>

      <listitem>
        <para>
          The new flag <literal>+RTS -qa</literal>
          uses the OS to set thread affinity.
        </para>
      </listitem>

      <listitem>
        <para>
          The new flag <literal>+RTS -qb</literal>
          disables load balancing in the parallel garbage collector.
        </para>
      </listitem>

      <listitem>
        <para>
          If you link with the <literal>-eventlog</literal> flag, then
          the new flag <literal>+RTS -l</literal> generates
          <literal><replaceable>prog</replaceable>.eventlog</literal>
          files, which tools such as ThreadScope can use to show the
          behaviour of your program. The
          <literal>+RTS -D><replaceable>x</replaceable></literal> output
          is also sent to the eventlog file if this option is enabled.
          The <literal>+RTS -v</literal> flag sends eventlog data to
          stderr instead.
        </para>
      </listitem>

      <listitem>
        <para>
          There is a new statistic in the <literal>+RTS -s</literal> output:
        </para>
<programlisting>
SPARKS: 1430 (2 converted, 1427 pruned)
</programlisting>
        <para>
          This tells you how many sparks (requests for parallel
          execution, caused by calls to <literal>par</literal>) were
          created, how many were actually evaluated in parallel
          (converted), and how many were found to be already evaluated
          and were thus discarded (pruned). Any unaccounted for sparks
          are simply discarded at the end of evaluation.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>Build system</title>
    <itemizedlist>
      <listitem>
        <para>
          We now require GHC >= 6.8 to build.
        </para>
      </listitem>

      <listitem>
        <para>
          We now require that gcc is >= 3.0.
        </para>
      </listitem>

      <listitem>
        <para>
          In order to generate the parsers, happy >= 1.16 is now
          required. The parsers are pre-generated in the source tarball,
          so most users will not need happy.
        </para>
      </listitem>

      <listitem>
        <para>
          It is now possible to build GHC with a simple, BSD-licensed
          Haskell implementation of Integer, instead of the
          implementation on top of GMP. To do so, set
          <literal>INTEGER_LIBRARY</literal> to
          <literal>integer-simple</literal> in
          <literal>mk/build.mk</literal>.
        </para>
      </listitem>

      <listitem>
        <para>
          The build system has been rewritten for the 6.12 series.
          See <ulink url="http://hackage.haskell.org/trac/ghc/wiki/Building/Using">the building guide</ulink>
          for more information.
        </para>
      </listitem>

      <listitem>
        <para>
          The build system now uses variables like
          <literal>bindir</literal> compatibly with the GNU standard.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>Compiler</title>
    <itemizedlist>
      <listitem>
        <para>
          The "Interface file version" field of the
          <literal>ghc --info</literal> output has been removed, as it
          is no longer used by GHC.
        </para>
      </listitem>

      <listitem>
        <para>
          There is a new "LibDir" field in the
          <literal>ghc --info</literal> output.
        </para>
      </listitem>

      <listitem>
        <para>
          A field <replaceable>f</replaceable> in the
          <literal>ghc --info</literal> can now be printed with
          <literal>ghc --print-<replaceable>f</replaceable></literal>, with letters lower-cased
          and spaces replaced by dashes.
        </para>
      </listitem>

      <listitem>
        <para>
          GHC now works (as a 32bit application) on OS X Snow Leopard.
        </para>
      </listitem>

      <listitem>
        <para>
          The native code generator now works on Sparc Solaris.
        </para>
      </listitem>

      <listitem>
        <para>
          Haddock interface files are now portable between different
          architectures.
        </para>
      </listitem>

      <listitem>
        <para>
          The new linker flag <literal>-eventlog</literal> enables the
          <literal>+RTS -l</literal> event logging features. The
          <literal>-debug</literal> flag also enables them.
        </para>
      </listitem>

      <listitem>
        <para>
          There is a new flag <literal>-feager-blackholing</literal>
          which typically gives better performing code when running
          with multiple threads.
          See <xref linkend="parallel-compile-options" /> for more
          information.
        </para>
      </listitem>

      <listitem>
        <para>
          There is a new flag <literal>-fbuilding-cabal-package</literal>
          which signals to GHC that it is being run by a build system,
          rather than invoked directly. This currently means that GHC
          gives different error messages in certain situations.
        </para>
      </listitem>

      <listitem>
        <para>
          The following flags were static, but are now dynamic:
          <literal>-fext-core</literal>,
          <literal>-fauto-sccs-on-all-toplevs</literal>,
          <literal>-auto-all</literal>,
          <literal>-no-auto-all</literal>,
          <literal>-fauto-sccs-on-exported-toplevs</literal>,
          <literal>-auto</literal>,
          <literal>-no-auto</literal>,
          <literal>-fauto-sccs-on-individual-cafs</literal>,
          <literal>-caf-all</literal> and
          <literal>-no-caf-all</literal>.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>GHCi</title>
    <itemizedlist>
      <listitem>
        <para>
          If the argument to <literal>:set prompt</literal> starts with
          a double quote then it is read with Haskell String syntax,
          e.g.:
        </para>
<programlisting>
Prelude> :set prompt "Loaded: %s\n> "
Loaded: Prelude
> 
</programlisting>
      </listitem>

      <listitem>
        <para>
          The arguments to <literal>:set set</literal>
          and <literal>:set show</literal> can now be tab completed.
        </para>
      </listitem>

      <listitem>
        <para>
          We inherit some benefits from an upgraded version of haskeline:
        </para>
          <itemizedlist>
            <listitem>
              <para>
                A multitude of new emacs and vi commands.
              </para>
            </listitem>

            <listitem>
              <para>
                New preference 'historyDuplicates' to prevent storage
                of duplicate lines.
              </para>
            </listitem>

            <listitem>
              <para>
                Support PageUp and PageDown keys.
              </para>
            </listitem>

            <listitem>
              <para>
                Let ctrl-L (clear-screen) work during getInputChar.
              </para>
            </listitem>
          </itemizedlist>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>Template Haskell</title>
    <itemizedlist>
      <listitem>
        <para>
          You can now omit the splice notation for top-level declaration
          splices, e.g.:
        </para>
<programlisting>
data T = T1 | T2
deriveMyStuff ''T
</programlisting>
      </listitem>

      <listitem>
        <para>
          Splices are now nestable, e.g. you can say
          <literal>f x = $(g $(h 'x))</literal>.
        </para>
      </listitem>

      <listitem>
        <para>
          It is now possible to splice in types.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>Package Handling</title>
    <itemizedlist>
      <listitem>
        <para>
          Shared libraries are now supported on x86 and x86_64 Linux.
          To use shared libraries, use the <literal>-dynamic</literal>
          flag.
          See <xref linkend="using-shared-libs" />  for more information.
        </para>
      </listitem>

      <listitem>
        <para>
          The new <literal>-fno-shared-implib</literal> flag can be used
          to stop GHC generating the <literal>.lib</literal> import
          library when making a dynamic library. This reduces the disk
          space used when you do not need it.
        </para>
      </listitem>

      <listitem>
        <para>
          Packages can now be identified by a "package ID", which is
          based on a hash of the ABIs. The new flag
          <literal>-package-id</literal> allows packages to be selected
          by this identifier.
        </para>
      </listitem>

      <listitem>
        <para>
          The new flag <literal>--abi-hash</literal>, used thus:
        </para>
<programlisting>
ghc --abi-hash M1 M2 ...
</programlisting>
        <para>
          prints the combined hash of all the modules listed. It is
          used to make package IDs.
        </para>
      </listitem>

      <listitem>
        <para>
          You can now give <literal>ghc-pkg</literal> a
          <literal>-v0</literal> flag to make it be silent,
          <literal>-v1</literal> for normal verbosity (the default),
          or <literal>-v2</literal> or <literal>-v</literal> for
          verbose output.
        </para>
      </listitem>

      <listitem>
        <para>
          Rather than being a single <literal>package.conf</literal> file,
          package databases now consist of a directory containing one
          file per package, and a binary cache of the information.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2> 
    <title>Libraries</title>

    <para>
      GHC no longer comes with any extralibs; instead, the
      <ulink url="http://hackage.haskell.org/platformi/">Haskell Platform</ulink>
      will provide a consistent set of additional libraries.
    </para>

    <sect3>
      <title>array</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.3.0.0 (was 0.2.0.0)
          </para>
        </listitem>

        <listitem>
          <para>
            The <literal>Data.Array.Diff</literal> module has been moved
            to its own package.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>base</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 4.2.0.0 (was 4.1.0.0)
          </para>
        </listitem>

        <listitem>
          <para>
            We also ship a base version 3.0.3.2 (was 3.0.3.1), so legacy
            code should continue to work. This package is now deprecated,
            and will be removed in a future version of GHC.
          </para>
        </listitem>

        <listitem>
          <para>
            Handle IO now supports automatic character set encoding
            and newline translation. For more information, see the
            "Unicode encoding/decoding" and "Newline conversion" sections
            in the <literal>System.IO</literal> haddock docs.
          </para>
        </listitem>

        <listitem>
          <para>
            It is now possible to create your own handles.
            For more information, see the
            <literal>GHC.IO.Handle</literal> haddock docs.
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>System.IO</literal> now exports two new functions,
            <literal>openTempFileWithDefaultPermissions</literal> and
            <literal>openBinaryTempFileWithDefaultPermissions</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>Data.Fixed</literal> now provides
            <literal>Data</literal> and <literal>Typeable</literal>
            instances for <literal>Fixed</literal>, and exports
            a number of new types:
            <literal>E0</literal>, <literal>Uni</literal>,
            <literal>E1</literal>, <literal>Deci</literal>,
            <literal>E2</literal>, <literal>Centi</literal>,
            <literal>E3</literal>, <literal>Milli</literal>,
            <literal>E9</literal> and <literal>Nano</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            In <literal>Control.Exception</literal>,
            <literal>BlockedOnDeadMVar</literal>
            has been renamed to
            <literal>BlockedIndefinitelyOnMVar</literal>
            and <literal>BlockedIndefinitely</literal>
            has been renamed to
            <literal>BlockedIndefinitelyOnSTM</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            The <literal>Control.OldException</literal> module has been
            deprecated.
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>System.Posix.Internals.setNonBlockingFD</literal>
            now takes an additional <literal>Bool</literal> argument, so
            you can turn blocking back on again.
          </para>
        </listitem>

        <listitem>
          <para>
            A new function <literal>eof</literal> has been added to
            <literal>Text.ParserCombinators.ReadP</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            The <literal>Foreign.C.Types.CLDouble</literal> type has
            been removed. It was never correct, but just a duplicate of
            <literal>Foreign.C.Types.CDouble</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            In <literal>Data.Data</literal>, the
            <literal>StringRep</literal> and
            <literal>StringConstr</literal> constructors have been
            removed. The <literal>CharRep</literal> and
            <literal>CharConstr</literal> constructors should be used
            instead.
          </para>
        </listitem>

        <listitem>
          <para>
            In <literal>Data.Data</literal>,
            <literal>mkIntConstr</literal> has been deprecated in favour
            of the new <literal>mkIntegralConstr</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            In <literal>Data.Data</literal>,
            <literal>mkFloatConstr</literal> has been deprecated in
            favour of the new <literal>mkRealConstr</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            In <literal>Data.Data</literal>,
            <literal>mkNorepType</literal> has been deprecated in
            favour of the new <literal>mkNoRepType</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>bytestring</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.9.1.5 (was 0.9.1.4)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>Cabal</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.8.0.0 (was 1.6.0.3)
          </para>
        </listitem>

        <listitem>
          <para>
            Many API changes. See the Cabal docs for more information.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>containers</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.3.0.0 (was 0.2.0.1)
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>mapAccumRWithKey</literal> has been added to
            <literal>Data.IntMap</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            A <literal>Traversable</literal> instance has been added to
            <literal>Data.IntMap.IntMap</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            The types of <literal>Data.IntMap.intersectionWith</literal>
            and <literal>Data.IntMap.intersectionWithKey</literal> have
            been changed from
        </para>
<programlisting>
intersectionWith :: (a -> b -> a) -> IntMap a -> IntMap b -> IntMap a
intersectionWithKey :: (Key -> a -> b -> a) -> IntMap a -> IntMap b -> IntMap a
</programlisting>
        <para>
            to
        </para>
<programlisting>
intersectionWith :: (a -> b -> c) -> IntMap a -> IntMap b -> IntMap c
intersectionWithKey :: (Key -> a -> b -> c) -> IntMap a -> IntMap b -> IntMap c
</programlisting>
        </listitem>

        <listitem>
          <para>
            The types of <literal>Data.IntMap.findMin</literal>
            and <literal>Data.IntMap.findMax</literal> have
            been changed from
        </para>
<programlisting>
findMin :: IntMap a -> a
findMax :: IntMap a -> a
</programlisting>
        <para>
            to
        </para>
<programlisting>
findMin :: IntMap a -> (Int,a)
findMax :: IntMap a -> (Int,a)
</programlisting>
        </listitem>

        <listitem>
          <para>
            <literal>Data.Map</literal> now exports
            <literal>mapAccumRWithKey</literal>,
            <literal>foldrWithKey</literal>,
            <literal>foldlWithKey</literal> and
            <literal>toDescList</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>Data.Sequence</literal> now exports
            <literal>replicate</literal>,
            <literal>replicateA</literal>,
            <literal>replicateM</literal>,
            <literal>iterateN</literal>,
            <literal>unfoldr</literal>,
            <literal>unfoldl</literal>,
            <literal>scanl</literal>,
            <literal>scanl1</literal>,
            <literal>scanr</literal>,
            <literal>scanr1</literal>,
            <literal>tails</literal>,
            <literal>inits</literal>,
            <literal>takeWhileL</literal>,
            <literal>takeWhileR</literal>,
            <literal>dropWhileL</literal>,
            <literal>dropWhileR</literal>,
            <literal>spanl</literal>,
            <literal>spanr</literal>,
            <literal>breakl</literal>,
            <literal>breakr</literal>,
            <literal>partition</literal>,
            <literal>filter</literal>,
            <literal>sort</literal>,
            <literal>sortBy</literal>,
            <literal>unstableSort</literal>,
            <literal>unstableSortBy</literal>,
            <literal>elemIndexL</literal>,
            <literal>elemIndicesL</literal>,
            <literal>elemIndexR</literal>,
            <literal>elemIndicesR</literal>,
            <literal>findIndexL</literal>,
            <literal>findIndicesL</literal>,
            <literal>findIndexR</literal>,
            <literal>findIndicesR</literal>,
            <literal>foldlWithIndex</literal>,
            <literal>foldrWithIndex</literal>,
            <literal>mapWithIndex</literal>,
            <literal>zip</literal>,
            <literal>zipWith</literal>,
            <literal>zip3</literal>,
            <literal>zipWith3</literal>,
            <literal>zip4</literal> and
            <literal>zipWith4</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>directory</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.0.1.0 (was 1.0.0.3)
          </para>
        </listitem>

        <listitem>
          <para>
            A new function <literal>copyPermissions</literal> has been
            added to <literal>System.Directory</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>
        dph
        (dph-base, dph-par, dph-prim-interface, dph-prim-par,
        dph-prim-seq, dph-seq)
      </title>
      <itemizedlist>
        <listitem>
          <para>
            All the dph packages are version 0.4.0.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>extensible-exceptions</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.1.1.1 (was 0.1.1.0)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>filepath</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.1.0.3 (was 1.1.0.2)
          </para>
        </listitem>

        <listitem>
          <para>
            The list of characters that are invalid in filenames on
            Windows now includes <literal>\</literal> (backslash).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>ghc-binary</title>
      <itemizedlist>
        <listitem>
          <para>
            This is an internal package, and should not be used.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>ghc-prim</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.2.0.0 (was 0.1.0.0)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>haskell98</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.0.1.1 (was 1.0.1.0)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>hpc</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.5.0.4 (was 0.5.0.3)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>integer-gmp</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.2.0.0 (was called integer, version 0.1.0.1)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>integer-simple</title>
      <itemizedlist>
        <listitem>
          <para>
            This is a new boot package, version 0.1.0.0.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>old-locale</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.0.0.2 (was 1.0.0.1)
          </para>
        </listitem>

        <listitem>
          <para>
            Date and time in ISO8601 format are now separated by
            <literal>T</literal> rather than a space.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>old-time</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.0.0.3 (was 1.0.0.2)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>packedstring</title>
      <itemizedlist>
        <listitem>
          <para>
            This is no longer a boot package.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>pretty</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.0.1.1 (was 1.0.1.0)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>process</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.0.1.2 (was 1.0.1.1)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>random</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.0.0.2 (was 1.0.0.1)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>syb</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 0.1.0.2 (was 0.1.0.1)
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>template-haskell</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.4.0.0 (was 2.3.0.1)
          </para>
        </listitem>

        <listitem>
          <para>
            Support for <literal>inline</literal> and
            <literal>specialise</literal> pragmas has been added.
          </para>
        </listitem>

        <listitem>
          <para>
            Support for bang patterns has been added
          </para>
        </listitem>

        <listitem>
          <para>
            Support for kind annotations has been added
          </para>
        </listitem>

        <listitem>
          <para>
            Support for equality constraints has been added
          </para>
        </listitem>

        <listitem>
          <para>
            Support for type family declarations has been added
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>time</title>
      <itemizedlist>
        <listitem>
          <para>
            This is a new boot package, version 1.1.4.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>unix</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.4.0.0 (was 2.3.2.0)
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>System.Posix.IO</literal> now exports
            <literal>fdReadBuf</literal> and
            <literal>fdWriteBuf</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>System.Posix.Process.executeFile</literal> now
            returns <literal>IO a</literal> instead of
            <literal>IO ()</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>Win32</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.2.0.1 (was 2.2.0.0)
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>System.Win32.File</literal> now exports
            <literal>WIN32_FIND_DATA</literal>,
            <literal>FindData</literal>,
            <literal>getFindDataFileName</literal>,
            <literal>findFirstFile</literal>,
            <literal>findNextFile</literal> and
            <literal>findClose</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>System.Win32.Info</literal> now exports
            <literal>getCurrentDirectory</literal>,
            <literal>getTemporaryDirectory</literal>,
            <literal>getFullPathName</literal> and
            <literal>searchPath</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            <literal>System.Win32.Types</literal> now exports
            <literal>HRESULT</literal>.
          </para>
        </listitem>

        <listitem>
          <para>
            There is a new module <literal>System.Win32.Shell</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>
  </sect2>
</sect1>