6.6-notes.xml 53.8 KB
Newer Older
Ian Lynagh's avatar
Ian Lynagh committed
1
2
3
4
5
6
7
<?xml version="1.0" encoding="iso-8859-1"?>
<sect1 id="release-6-6">
  <title>Release notes for version 6.6</title>

  <sect2>
    <title>User-visible compiler changes</title>
    <itemizedlist>
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
      <listitem>
        <para>
          GHC now supports SMP:
          when you compile with <option>-threaded</option>, you now get
          an RTS flag <option>-N</option> that allows you to specify the
          number of OS threads that GHC should use. Defaults to 1.
          See <xref linkend="sec-using-smp" /> and <xref
          linkend="lang-parallel" />.
        </para>
      </listitem>
      <listitem>
        <para>
          GHC's modules are now also bundled into a
          <literal>ghc</literal> package, allowing programs to make use
          of GHC as a library. The interface has not yet been properly
          designed, so is subject to change.
        </para>
      </listitem>
      <listitem>
        <para>
          GHC now handles impredicative polymorphism and there are
          changes to the way scoped type variables work; see
          <ulink url="http://www.haskell.org/pipermail/glasgow-haskell-users/2006-January/009565.html"> Simon's e-mail</ulink>
          for more details.
        </para>
      </listitem>
      <listitem>
        <para>
          GHC now supports bang patterns to require a function is strict
          in a given argument, e.g.
          <programlisting>
    f (!x, y) = [x,y]</programlisting>
          is equivalent to
          <programlisting>
    f (x, y) | x `seq` False = undefined
             | otherwise = [x,y]</programlisting>
        </para>
      </listitem>
      <listitem>
        <para>
          The restriction that you cannot use two packages together if
          they contain a module with the same name has been removed.
          In implementation terms, the package name is now included in
          every exported symbol name in the object file, so that
          modules with the same name in different packages do not
          clash.  See <xref linkend="package-overlaps" />.
        </para>
      </listitem>
      <listitem>
        <para>
          GHC now treats source files as UTF-8 (ASCII is a strict
          subset of UTF-8, so ASCII source files will continue to
          work as before). However, invalid UTF-8 sequences are
          ignored in comments, so ASCII code with comments in, for
          example, Latin-1 will also work.
        </para>
      </listitem>
      <listitem>
        <para>
          GADTs can now use record syntax. Also, if the datatype could
          have been declared with Haskell 98 syntax then deriving
          clauses are permitted. For more info see <xref linkend="gadt" />.
        </para>
      </listitem>
      <listitem>
        <para>
          There is a new pragma <literal>LANGUAGE</literal> which allows
          extensions to be specified portably, i.e. without having to
          resort to the <literal>OPTIONS_GHC</literal> pragma and giving
          GHC-specific options. The arguments to the pragma are the same
          extensions that Cabal knows about. More info in
          <xref linkend="language-pragma" />.
        </para>
      </listitem>
      <listitem>
        <para>
          When you use <command>ghc --make</command>, GHC will now take
          the executable filename from the name of the file containing
          the <literal>Main</literal> module rather than using
          <filename>a.out</filename>. The <filename>.exe</filename>
          extension is appended on Windows, and it can of course be
          overridden with <option>-o</option>.
        </para>
      </listitem>
      <listitem>
        <para>
          GHC's garbage collector now deals more intelligently with
          mutable data, so you mostly no longer need to worry about GC
          performance when a lot of memory is taken up by
          <literal>STArray</literal>s, <literal>IOArray</literal>s,
          <literal>STRef</literal>s or <literal>IORef</literal>s.
        </para>
      </listitem>
      <listitem>
        <para>
          GHC now allows more generalisation when typing mutually
          recursive bindings, resulting in more programs being accepted.
          See <xref linkend="typing-binds" /> for more details.
        </para>
      </listitem>
      <listitem>
        <para>
          The rules for instance declarations have been further relaxed.
          You are now permitted to have instances whose heads contain
          only type variables, e.g.
          <programlisting>
    instance C a</programlisting>
          and instances whose constraints are not only type variables,
          e.g.
          <programlisting>
    instance C2 Int a => C3 [a] b</programlisting>
          For more details, see <xref linkend="instance-rules" />.
        </para>
      </listitem>
Ian Lynagh's avatar
Ian Lynagh committed
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
      <listitem>
        <para>
            The following flags (and, where appropriate, their inverses)
            used to be static (can only be given on
            the command line) but are now dynamic (can also be given in
            a <literal>GHC_OPTIONS</literal> pragma or with
            <literal>:set</literal> in GHCi):
            <option>-c</option>,
            <option>-hcsuf</option>,
            <option>-hidir</option>,
            <option>-hisuf</option>,
            <option>-o</option>,
            <option>-odir</option>,
            <option>-ohi</option>,
            <option>-osuf</option>,
            <option>-keep-hc-file</option>,
            <option>-keep-s-file</option>,
            <option>-keep-raw-s-file</option>,
            <option>-keep-tmp-files</option>,
            <option>-tmpdir</option>,
            <option>-i</option>,
            <option>-package</option>,
            <option>-hide-package</option>,
            <option>-ignore-package</option>,
            <option>-package-conf</option>,
            <option>-no-user-package-conf</option>,
            <option>-fcontext-stack</option>,
            <option>-fexcess-precision</option>,
            <option>-fignore-asserts</option>,
            <option>-fignore-interface-pragmas</option>,
            <option>-I</option>,
            <option>-framework</option>,
            <option>-framework-path</option>,
            <option>-l</option>,
            <option>-L</option>,
            <option>-main-is</option>,
            <option>-no-hs-main</option>,
            <option>-split-objs</option>,
            <option>-pgmL</option>,
            <option>-pgmP</option>,
            <option>-pgmc</option>,
            <option>-pgma</option>,
            <option>-pgml</option>,
            <option>-pgmdll</option>,
            <option>-pgmdep</option>,
            <option>-pgmF</option>,
            <option>-optl</option>,
            <option>-optdll</option>,
            <option>-optdep</option>,
            <option>-fno-asm-mangling</option>.
            See <xref linkend="static-dynamic-flags" /> for more on
            the meaning of static and dynamic flags, and
            <xref linkend="flag-reference" /> for more on the flags
            themselves.
        </para>
      </listitem>
      <listitem>
        <para>
          There is a new flag <option>-x</option> for overriding the
          default behaviour for source files; see
          <xref linkend="overriding-suffixes" /> details.
        </para>
      </listitem>
      <listitem>
        <para>
          The <option>-fglobalise-toplev-names</option>
          flag has been removed.
        </para>
      </listitem>
      <listitem>
        <para>
          The <option>-fallow-overlapping-instances</option> flag is
          implied by the <option>-fallow-incoherent-instances</option>
          flag.
        </para>
      </listitem>
      <listitem>
        <para>
          The directory that the <filename>foo_stub.c</filename> and
          <filename>foo_stub.h</filename> files are put in can now be
          controlled with the <option>-stubdir</option> flag.
          See <xref linkend="options-output" /> for more details.
        </para>
      </listitem>
      <listitem>
        <para>
208
209
210
          When the <option>-fno-implicit-prelude</option> is given,
          the equality test performed when pattern matching against an
          overloaded numeric literal now uses the
Ian Lynagh's avatar
Ian Lynagh committed
211
212
213
214
215
216
217
218
219
          <literal>(==)</literal> in scope, rather than the one from
          <literal>Prelude</literal>. Likewise, the subtraction and
          inequality test performed when pattern matching against
          <literal>n+k</literal> patterns uses the
          <literal>(-)</literal> and <literal>(>=)</literal> in scope.
        </para>
      </listitem>
      <listitem>
        <para>
220
221
222
223
224
          Another change to <option>-fno-implicit-prelude</option>:
          with the exception of the arrow syntax, the types of
          functions used by sugar (such as do notation, numeric
          literal patterns) need not match the types of the
          <literal>Prelude</literal> functions normally used.
Ian Lynagh's avatar
Ian Lynagh committed
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
        </para>
      </listitem>
      <listitem>
        <para>
          The <literal>InstalledPackageInfo</literal> syntax has
          changed. Now
          instead of <literal>extra-libs</literal> we have
          <literal>extra-libraries</literal>,
          instead of <literal>extra-hugs-opts</literal> we have
          <literal>hugs-options</literal>,
          instead of <literal>extra-cc-opts</literal> we have
          <literal>cc-options</literal>,
          instead of <literal>extra-ld-opts</literal> we have
          <literal>ld-options</literal>,
          and instead of <literal>extra-frameworks</literal> we have
          <literal>frameworks</literal>.
          See <xref linkend="installed-pkg-info" /> for details.
        </para>
      </listitem>
      <listitem>
        <para>
          If you <literal>newtype</literal> the IO monad, e.g.
          <programlisting>
    newtype MyIO a = MyIO (IO a)</programlisting>
          then GHC will now allow you to have FFI calls return
          <literal>MyIO <replaceable>t</replaceable></literal>
          rather than just
          <literal>IO <replaceable>t</replaceable></literal>.
253
	  See <xref linkend="ffi-newtype-io"/>
Ian Lynagh's avatar
Ian Lynagh committed
254
255
        </para>
      </listitem>
256
257
258
259
260
      <listitem> <para> GHC's mechansim for deriving user-defined classes
	  for newtypes has been further generalised, to multi-parameter type
	  classes and higher-kinded types.  See <xref
	  linkend="newtype-deriving"/>.
	  </para></listitem>
Ian Lynagh's avatar
Ian Lynagh committed
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
      <listitem>
        <para>
          By default, pattern bindings in GHC are now monomorphic.
          This means that some valid Haskell 98 programs will get
          rejected, but we believe they will be few in number.
          To revert to the old behaviour use the
          <option>-fno-mono-pat-binds</option> flag.
          More details are in <xref linkend="options-language" />.
        </para>
      </listitem>
      <listitem>
        <para>
          GHCi already does more defaulting than Haskell 98 so that, for
          example, <literal>reverse []</literal> shows a result rather
          than giving an ambiguous type variable error. There is now a
          flag <option>-fextended-default-rules</option> to use these
          defaulting rules with GHC too.
          More details are in <xref linkend="extended-default-rules" />.
        </para>
      </listitem>
      <listitem>
        <para>
          You can now give both class and instance declarations in
          <filename>.hs-boot</filename> files. More details in
          <xref linkend="mutual-recursion" />.
        </para>
      </listitem>
288
289
290
291
292
293
294
      <listitem>
        <para>
          Linear implicit parameters have been scheduled for removal for some
          time.  In 6.6 we've removed them from the user manual, and they may
	  well disappear from the compiler itself in 6.6.1.
        </para>
      </listitem>
Ian Lynagh's avatar
Ian Lynagh committed
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
      <listitem>
        <para>
          It is now possible, with the <literal>-I</literal> RTS flag,
          to control the amount of idle time that happens before a major
          GC is performed.
        </para>
      </listitem>
      <listitem>
        <para>
          The old syntax for FFI declarations (deprecated since 5.04)
          is no longer accepted.
        </para>
      </listitem>
      <listitem>
        <para>
          The <option>-split-objs</option> flag can now be used with
          <option>--make</option>, and hence can be used by cabal.
        </para>
      </listitem>
314
315
316
317
318
319
320
321
      <listitem>
        <para>
          Template Haskell used to have limited support for type signatures in 
	  patterns, but since that design is in flux for Haskell (let alone
	  Template Haskell), we've removed type signatures in patterns from
	  Template Haskell.
        </para>
      </listitem>
322
323
324
325
326
327
328
    </itemizedlist>
  </sect2>

  <sect2>
    <title>GHCi changes</title>

    <itemizedlist>
Ian Lynagh's avatar
Ian Lynagh committed
329
330
      <listitem>
        <para>
331
332
          GHCi now allows tab completion of in-scope names and modules
          on platforms that use readline (i.e. not Windows).
Ian Lynagh's avatar
Ian Lynagh committed
333
334
335
336
        </para>
      </listitem>
      <listitem>
        <para>
337
338
339
340
          GHCi now has a <literal>:main</literal> command that allows
          you to call the <literal>main</literal> function with
          command-line arguments.
          See <xref linkend="ghci-commands" /> for more information.
Ian Lynagh's avatar
Ian Lynagh committed
341
342
343
344
        </para>
      </listitem>
      <listitem>
        <para>
345
346
347
348
          GHCi now has <literal>:ctags</literal> and
          <literal>:etags</literal> commands to generate tags files for
          vi-style and emacs-style editors respectively.
          See <xref linkend="ghci-commands" /> for more information.
Ian Lynagh's avatar
Ian Lynagh committed
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
        </para>
      </listitem>
    </itemizedlist>
  </sect2>

  <sect2>
    <title>Libraries</title>
    <para>
      Libraries are now divided into core libraries (those that are
      necessary to build GHC) and extra libraries. Decoupling the extra
      libraries means that they can release independently of GHC
      releases, and makes development builds of GHC quicker as they no
      longer need to build unnecessary libraries.
    </para>

    <para>
      The hslibs libraries have finally been removed.
    </para>
  </sect2>

  <sect2>
    <title>Core Libraries</title>
    <sect3>
      <title>base</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.0 (was 1.0).
          </para>
        </listitem>
        <listitem>
          <para>
            We now have <literal>Read</literal> and
            <literal>Show</literal> instances for up to 15-tuples (used
            to be up to 5-tuples).
          </para>
        </listitem>
        <listitem>
          <para>
            New module <literal>Control.Applicative</literal> that
            describes a structure intermediate between a functor and
            a monad: it provides pure expressions and sequencing, but
            no binding.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Control.Exception</literal> now exports
            <literal>bracketOnError</literal>, which behaves like
            <literal>bracket</literal> but only runs the final
            action if the main action raised an error.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module
            <literal>Control.Monad.Instances</literal> which
            provides <literal>Monad</literal> and
            <literal>Functor</literal> instances for
            <literal>((->) r)</literal> (were in
            <literal>mtl</literal>'s
            <literal>Control.Monad.Reader</literal>), 
            a <literal>Functor</literal> instance for
            <literal>(Either a)</literal> (was in <literal>mtl</literal>'s
            <literal>Control.Monad.Error</literal>) and a
            <literal>Functor</literal> instance for
            <literal>((,) a)</literal> (new).
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>MonadFix</literal> instance for
            <literal>((->) r)</literal> is now in
            <literal>Control.Monad.Fix</literal> (was in
            <literal>mtl</literal>'s
            <literal>Control.Monad.Reader</literal>).
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Control.Monad.ST</literal> now exports
            <literal>unsafeSTToIO</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>HasBounds</literal> class has been removed from
            <literal>Data.Array.Base</literal>, and its
            <literal>bounds</literal> method is now in the
            <literal>IArray</literal> class. The
            <literal>MArray</literal> class
            has also gained a method <literal>getBounds</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Array.Base</literal> now provides an
            <literal>MArray (STArray s) e (Lazy.ST s)</literal>
            instance.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Array.Storable</literal> now exports a
            function <literal>unsafeForeignPtrToStorableArray</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            The new <literal>Data.ByteString</literal> hierarchy
            provides time and space-efficient byte vectors.
            The old <literal>Data.PackedString</literal> module is now
            deprecated as a result, although there is not yet a
            replacement if you need full unicode support.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>GHC.Exts</literal> now provides a function
            <literal>inline</literal> which, provided the RHS is visible
            to the compiler, forcibly inlines its argument.
            Otherwise, it acts like <literal>id</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>GHC.Exts</literal> now provides a function
            <literal>lazy</literal> which forces GHC to think that its
            argument is lazy in its first argument.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.FiniteMap</literal> has been removed
            (deprecated since 6.4). Use <literal>Data.Map</literal>
            instead.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Char</literal> now exports
            <literal>isLetter</literal>,
            <literal>isMark</literal>,
            <literal>isNumber</literal>,
            <literal>isPunctuation</literal>,
            <literal>isSymbol</literal>,
            <literal>isSeparator</literal>,
            <literal>isAsciiUpper</literal>,
            <literal>isAsciiLower</literal> and
            <literal>toTitle</literal>.
            It also exports a function
            <literal>generalCategory</literal> that tells you the
            category of a character in terms of a datatype
            <literal>GeneralCategory</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Dynamic</literal> now exports a function
            <literal>dynTypeRep</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module <literal>Data.Eq</literal> which
            just exports the <literal>Eq</literal> class.
            Likewise, a new module <literal>Data.Ord</literal>
            exports the <literal>Ord</literal> class, as well as the
            handy <literal>comparing</literal> function.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module <literal>Data.Fixed</literal>
            providing fixed-precision arithmetic.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module <literal>Data.Foldable</literal>
            providing a class for foldable datatypes. It gives instances
            for <literal>Maybe</literal>, <literal>[]</literal> and
            <literal>Array i</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module <literal>Data.Traversable</literal>
            providing a class for data structures that can be traversed
            from left to right. It gives instances
            for <literal>Maybe</literal>, <literal>[]</literal> and
            <literal>Array i</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.FunctorM</literal> has been deprecated;
            use <literal>Data.Foldable</literal> and
            <literal>Data.Traversable</literal> instead.
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>toConstr</literal> definitions for tuples in
            <literal>Data.Generics.Instances</literal> now actually
            evaluate their arguments to tuples before returning
            anything.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.IntMap</literal> now exports
            <literal>notMember</literal>,
            <literal>alter</literal>,
            <literal>mapMaybe</literal>,
            <literal>mapMaybeWithKey</literal>,
            <literal>mapEither</literal> and
            <literal>mapEitherWithKey</literal>.
            It also has <literal>Monoid</literal>,
            <literal>Foldable</literal> and <literal>Read</literal>
            instances.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.IntSet</literal> now exports
            <literal>notMember</literal>. It also has
            <literal>Monoid</literal> and <literal>Read</literal>
            instances.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Map</literal> now exports
            <literal>notMember</literal>,
            <literal>alter</literal>,
            <literal>mapMaybe</literal>,
            <literal>mapMaybeWithKey</literal>,
            <literal>mapEither</literal>,
            <literal>mapEitherWithKey</literal>,
            <literal>minView</literal> and
            <literal>maxView</literal>.
            It also has <literal>Monoid</literal>,
            <literal>Traversable</literal>, <literal>Foldable</literal>
            and <literal>Read</literal> instances.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Set</literal> now exports
            <literal>notMember</literal>,
            <literal>minView</literal> and
            <literal>maxView</literal>.
            It also has <literal>Monoid</literal>,
            <literal>Foldable</literal>
            and <literal>Read</literal> instances.
          </para>

          <para>
            The old, deprecated (since 6.4) interface consisting of
            <literal>emptySet</literal>,
            <literal>mkSet</literal>,
            <literal>setToList</literal>,
            <literal>unitSet</literal>,
            <literal>elementOf</literal>,
            <literal>isEmptySet</literal>,
            <literal>cardinality</literal>,
            <literal>unionManySets</literal>,
            <literal>minusSet</literal>,
            <literal>mapSet</literal>,
            <literal>intersect</literal>,
            <literal>addToSet</literal> and
            <literal>delFromSet</literal> has been removed.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Monoid</literal> no longer contains the
            <literal>Monoid</literal>
            instances for <literal>Map</literal>,
            <literal>IntMap</literal>, <literal>Set</literal> and
            <literal>IntSet</literal>. They have been moved to their own
            modules, as above. The <literal>(a -> a)</literal> instance
            has been replaced with a
            <literal>Monoid b => Monoid (a -> b)</literal> instance.
            The module also now exports
            <literal>Dual</literal>,
            <literal>Endo</literal>,
            <literal>All</literal>,
            <literal>Any</literal>,
            <literal>Sum</literal> and
            <literal>Product</literal> types, and
            <literal>Monoid</literal> instances for them.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module <literal>Data.Sequence</literal>
            for finite sequences. The <literal>Data.Queue</literal>
            module is now deprecated in favour of this faster, more
            featureful replacement.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Tree</literal> now has
            <literal>Data</literal>, <literal>Typeable</literal>,
            <literal>Traversable</literal> and
            <literal>Foldable</literal>
            instances for the
            <literal>Tree</literal> datatype.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Typeable</literal> now uses
            <option>-fallow-overlapping-instances</option>, so the
            generic instances can be overriden for your own datatypes.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Debug.Trace</literal> now exports
            <literal>traceShow</literal>, which is the same as
            <literal>trace</literal> except its first argument can be
            any showable thing rather than being required to be a
            string.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Foreign.C.Types</literal> now also defines
            <literal>CIntPtr</literal>,
            <literal>CUIntPtr</literal>,
            <literal>CIntMax</literal> and
            <literal>CUIntMax</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Foreign.ForeignPtr</literal> now exports
            <literal>FinalizerEnvPtr</literal>,
            <literal>newForeignPtrEnv</literal> and
            <literal>addForeignPtrFinalizerEnv</literal>.
            Together, these allow the use of finalizers which are passed
            an additional environment parameter.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Foreign.Marshal.Utils</literal> no longer exports
            the <literal>withObject</literal> function, deprecated since
            5.04; use <literal>with</literal> instead.
          </para>
        </listitem>
        <listitem>
          <para>
            Foreign.Ptr now also defines
            <literal>IntPtr</literal>,
            <literal>ptrToIntPtr</literal>,
            <literal>intPtrToPtr</literal>,
            <literal>WordPtr</literal>,
            <literal>ptrToWordPtr</literal> and
            <literal>wordPtrToPtr</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            There are now <literal>Bounded</literal> instances for up to
            15-tuples (used to be up to 4-tuples).
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>Text.Html</literal> and
            <literal>Text.Html.BlockTable</literal> modules have now
            been removed, with the new <literal>html</literal> and
            <literal>xhtml</literal> packages providing replacements.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Text.Read</literal> now exports a function
            <literal>parens</literal> which parses a value in an
            arbitrary number of parentheses.
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>ForeignPtr</literal> datatype has been altered
            to make it more efficient. There are also new functions
            <literal>mallocPlainForeignPtr</literal> and
            <literal>mallocPlainForeignPtrBytes</literal> which
            do not allow you to attach a finalizer to the
            <literal>ForeignPtr</literal>.
          </para>
        </listitem>
746
747
748
749
750
751
752
753
754
755
        <listitem>
          <para>
            The <literal>Text.Regex</literal> and
            <literal>Text.Regex.Posix</literal> modules have been removed.
            Instead, use the new <literal>regex-compat</literal> package
            for a drop-in <literal>Text.Regex</literal> replacement, or
            the new library in the new <literal>regex-posix</literal>
            package.
          </para>
        </listitem>
Ian Lynagh's avatar
Ian Lynagh committed
756
757
758
759
760
761
762
763
      </itemizedlist>
    </sect3>

    <sect3>
      <title>Cabal</title>
      <itemizedlist>
        <listitem>
          <para>
764
            Version number 1.1.6 (was 1.1.4).
Ian Lynagh's avatar
Ian Lynagh committed
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
          </para>
        </listitem>
        <listitem>
          <para>
            Support for JHC, symmetric to the support for the other
            implementations, has been added throughout.
          </para>
        </listitem>
        <listitem>
          <para>
            Support for object splitting and building in-place
            has been added throughout.
          </para>
        </listitem>
        <listitem>
          <para>
            Added a <filename>debianTemplate</filename> directory with
            templates for building Debian packages from Cabal packages.
          </para>
        </listitem>
        <listitem>
          <para>
            There are now modules
            <literal>Distribution.Simple.<replaceable>compiler</replaceable></literal>
            for each of <literal>GHC</literal>, <literal>NHC</literal>,
            <literal>Hugs</literal> and <literal>JHC</literal>.
            The <literal>Distribution.Simple.Build</literal> and
            <literal>Distribution.Simple.Install</literal> modules have
            shrunk correspondingly.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Distribution.GetOpt</literal> is no longer a
            visible module.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Distribution.Simple</literal> exports a function
            <literal>defaultMainArgs</literal>, which is identical to
            <literal>defaultMain</literal> except that the arguments are
            given as a list of strings rather than being retrieved with
            <literal>getArgs</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Distribution.Simple.Configure</literal>
            no longer exports
            <literal>LocalBuildInfo</literal>,
            but does now export
            <literal>configDependency</literal> and
            <literal>configCompilerAux</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Distribution.Simple.LocalBuildInfo</literal> now
            exports <literal>mkHaddockDir</literal>,
            <literal>distPref</literal>,
            <literal>srcPref</literal>,
            <literal>autogenModulesDir</literal> and
            <literal>mkIncludeDir</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Distribution.PackageDescription</literal> now
            exports <literal>haddockName</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Distribution.Simple.Utils</literal> now exports
            <literal>copyDirectoryRecursiveVerbose</literal>,
            <literal>dirOf</literal>,
            <literal>distPref</literal>,
            <literal>haddockPref</literal> and
            <literal>srcPref</literal>.
            It no longer exports <literal>mkGHCiLibName</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>haskell98</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.0).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

Ian Lynagh's avatar
Ian Lynagh committed
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
    <sect3>
      <title>parsec</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.0 (was 1.0).
          </para>
        </listitem>
        <listitem>
          <para>
            No other change.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

Ian Lynagh's avatar
Ian Lynagh committed
878
879
880
881
882
883
884
885
886
887
888
    <sect3>
      <title>readline</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.0).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

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
    <sect3>
      <title>regex-base</title>
      <itemizedlist>
        <listitem>
          <para>
            Version 0.71.
          </para>
        </listitem>
        <listitem>
          <para>
            New library that provides common functions for different
            regex backends.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>regex-compat</title>
      <itemizedlist>
        <listitem>
          <para>
            Version 0.71.
          </para>
        </listitem>
        <listitem>
          <para>
            New package providing a replacement
            <literal>Text.Regex</literal> module.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>regex-posix</title>
      <itemizedlist>
        <listitem>
          <para>
            Version 0.71.
          </para>
        </listitem>
        <listitem>
          <para>
            A new package providing POSIX regexes.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

Ian Lynagh's avatar
Ian Lynagh committed
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
    <sect3>
      <title>stm</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.0 (was 1.0).
          </para>
        </listitem>
        <listitem>
          <para>
            A new module <literal>Control.Monad.STM</literal>
            contains the
            <literal>MonadPlus</literal> instance for
            <literal>STM</literal> and the function
            <literal>check</literal> (both used to be in
            <literal>Control.Concurrent.STM</literal>).
            It also re-exports
            <literal>STM</literal>,
            <literal>atomically</literal>,
            <literal>retry</literal>,
            <literal>orElse</literal> and
            <literal>catchSTM</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            A new module
            <literal>Control.Concurrent.STM.TArray</literal> defines
            <literal>TArray</literal>, a transactional array, and makes
            it an instance of <literal>MArray</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Control.Concurrent.STM.TChan</literal> now provides
            a function <literal>newTChanIO</literal>, which allows
            <literal>TChan</literal>s to be created in the IO monad.
            Similarly, <literal>Control.Concurrent.STM.TMVar</literal>
            provides <literal>newTMVarIO</literal> and
            <literal>newEmptyTMVarIO</literal>, and
            <literal>Control.Concurrent.STM.TVar</literal> exports
            <literal>newTVarIO</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Control.Concurrent.STM.TVar</literal> exports
            <literal>registerDelay</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>Control.Concurrent.STM</literal> module has been
            updated to re-export all the new modules.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>template-haskell</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.0 (was 1.0).
          </para>
        </listitem>
        <listitem>
          <para>
            A <literal>Show</literal> instance is now derived for
            <literal>Info</literal>, <literal>Fixity</literal> and
            <literal>FixityDirection</literal> in
            <literal>Language.Haskell.TH.Syntax</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            In <literal>Language.Haskell.TH.Syntax</literal>, there is
            a type <literal>PkgName</literal> and functions
            <literal>mkPkgName</literal> and
            <literal>pkgString</literal>
            for dealing with package names.
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>patGE</literal> function in
            <literal>Language.Haskell.TH.Lib</literal> now takes the
            final expression separately to the list of statements
            rather than splitting it off itself.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>unix</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.0).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>Win32</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.0 (was 1.0).
          </para>
        </listitem>
        <listitem>
          <para>
            Now maintained by Esa Ilari Vuokko.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module
            <literal>System.Win32.Console</literal>
            providing an interface to the Windows Console API.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module
            <literal>System.Win32.DebugApi</literal>
            providing an interface to the Windows DebugApi.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module
            <literal>System.Win32.FileMapping</literal>
            for working with memory-mapped files.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module
            <literal>System.Win32.SimpleMAPI</literal>
            for using the Windows mail API.
          </para>
        </listitem>
        <listitem>
          <para>
            There is a new module
            <literal>System.Win32.Time</literal>
            for using the Windows time API.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>iNVALID_HANDLE_VALUE</literal> has moved from
            <literal>Graphics.Win32.Misc</literal> to
            <literal>System.Win32.Types</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>System.Win32.File</literal> has a new
            function <literal>getFileInformationByHandle</literal>
            and associated data types.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>System.Win32.Info</literal> has a new
            function <literal>getSystemInfo</literal> and associated
            data types.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>System.Win32.Process</literal> now has many more
            exports.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>System.Win32.Types</literal> has new types
            <literal>LARGE_INTEGER</literal>, <literal>DDWORD</literal>
            and <literal>SIZE_T</literal>. It also has new helper
            functions <literal>ddwordToDwords</literal> and
            <literal>dwordsToDdword</literal> to split and combine
            ddwords into high and low components.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>System.Win32</literal> re-exports
            <literal>System.Win32.FileMapping</literal>,
            <literal>System.Win32.Time</literal>
            and <literal>System.Win32.Console</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>
  </sect2>

  <sect2>
    <title>Extra Libraries</title>
    <sect3>
      <title>ALUT</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.0 (was 1.0).
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Sound.ALUT.BuiltInSounds</literal> has been removed.
            Its <literal>Phase</literal> and <literal>Duration</literal>
            exports are now exported by
            <literal>Sound.ALUT.Loaders</literal> and its
            <literal>helloWorld</literal>,
            <literal>sine</literal>,
            <literal>square</literal>,
            <literal>sawtooth</literal>,
            <literal>impulse</literal> and
            <literal>whiteNoise</literal>
            exports are now constructors of the
            <literal>Sound.ALUT.Loaders.SoundDataSource</literal>
            datatype.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>arrows</title>
      <itemizedlist>
        <listitem>
          <para>
1177
            Version number 0.2 (was 0.1).
Ian Lynagh's avatar
Ian Lynagh committed
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
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Control.Sequence</literal> has been removed in
            favour of the new <literal>Control.Applicative</literal>
            module in <literal>base</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>cgi</title>
      <itemizedlist>
        <listitem>
          <para>
            Version 2006.8.14.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>cgi</literal> is a new package, developing on
            what used to be <literal>Network.CGI</literal> in the
            <literal>network</literal> package.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>fgl</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 5.3 (was 5.2).
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Graph.Inductive.Graph</literal> no longer
            exports <literal>UContext</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Data.Graph.Inductive.Graph</literal> now exports
            <literal>delLEdge</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>GLUT</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number remains 2.0.
          </para>
        </listitem>
        <listitem>
          <para>
            In <literal>Graphics.UI.GLUT.Initialization</literal>,
            <literal>DisplayMode</literal> has a new constructor
            <literal>WithAuxBuffers</literal> and
            <literal>DisplayCapability</literal> has a new constructor
            <literal>DisplayAux</literal>. These represent freeglut-only
            features.
          </para>
        </listitem>
        <listitem>
          <para>
            There are new examples in
            <filename>BOGLGP/Chapter03/OnYourOwn1.hs</filename>,
            <filename>RedBook/AAIndex.hs</filename>,
            <filename>RedBook/AARGB.hs</filename>,
            <filename>RedBook/AccAnti.hs</filename>,
            <filename>RedBook/AccPersp.hs</filename>,
            <filename>RedBook/Alpha3D.hs</filename>,
            <filename>RedBook/DOF.hs</filename>,
            <filename>RedBook/FogIndex.hs</filename>,
            <filename>RedBook/Multisamp.hs</filename>,
            <filename>RedBook/PointP.hs</filename>,
            <filename>RedBook/PolyOff.hs</filename>,
            <filename>RedBook/Stencil.hs</filename>,
            <filename>RedBook/Stroke.hs</filename> and
            <filename>RedBook/Torus.hs</filename>,
            and the examples in
            <filename>RedBook/Font.hs</filename> and
            <filename>RedBook/Histogram.hs</filename> have been
            improved.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>haskell-src</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.0).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>HGL</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 3.1).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>html</title>
      <itemizedlist>
        <listitem>
          <para>
            Version 1.0.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>html</literal> is a new package, developing on
            what used to be <literal>Text.Html</literal> and
            <literal>Text.Html.BlockTable</literal> in the
            <literal>base</literal> package.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Text.Html.BlockTable</literal> exports a new
            function <literal>empty</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>HUnit</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.1).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>mtl</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.0).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>network</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.0 (was 1.0).
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Network.CGI</literal> has been removed; use the
            <literal>cgi</literal> package instead.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Network.BSD</literal> no longer exports
            <literal>symlink</literal> or <literal>readlink</literal>;
            use
            <literal>System.Posix.Files.createSymbolicLink</literal> and
            <literal>System.Posix.Files.readSymbolicLink</literal>
            instead.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Network.BSD</literal> now exports
            <literal>defaultProtocol</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Network.Socket.SocketStatus</literal> now has a
            constructor <literal>ConvertedToHandle</literal> for sockets
            that have been converted to handles.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Network.Socket.Family</literal> now has the
            following additional constructors:
            <literal>AF_NETROM</literal>,
            <literal>AF_BRIDGE</literal>,
            <literal>AF_ATMPVC</literal>,
            <literal>AF_ROSE</literal>,
            <literal>AF_NETBEUI</literal>,
            <literal>AF_SECURITY</literal>,
            <literal>AF_PACKET</literal>,
            <literal>AF_ASH</literal>,
            <literal>AF_ECONET</literal>,
            <literal>AF_ATMSVC</literal>,
            <literal>AF_IRDA</literal>,
            <literal>AF_PPPOX</literal>,
            <literal>AF_WANPIPE</literal> and
            <literal>AF_BLUETOOTH</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            In <literal>Network.URI</literal>,
            <literal>parseabsoluteURI</literal> has been deprecated with
            a new function <literal>parseAbsoluteURI</literal> taking
            its place.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>ObjectIO</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.0).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>OpenAL</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 1.3 (was 1.2).
          </para>
        </listitem>
        <listitem>
          <para>
            No other change.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>OpenGL</title>
      <itemizedlist>
        <listitem>
          <para>
            Version number 2.1 (was 2.0).
          </para>
        </listitem>
        <listitem>
          <para>
            No other change.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>QuickCheck</title>
      <itemizedlist>
        <listitem>
          <para>
            No change (version 1.0).
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>time</title>
      <itemizedlist>
        <listitem>
          <para>
            Version 1.0.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>time</literal> is a new package, for dealing with
            dates, times and time intervals.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>X11</title>
      <itemizedlist>
        <listitem>
          <para>
1488
            Version number 1.2 (was 1.1).
Ian Lynagh's avatar
Ian Lynagh committed
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
          </para>
        </listitem>
        <listitem>
          <para>
            In <literal>Graphics.X11.Xlib.Types</literal>,
            <literal>XGCValues</literal> has been renamed
            <literal>GCValues</literal> and
            <literal>XSetWindowAttributes</literal> has been renamed
            <literal>SetWindowAttributes</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            In <literal>Graphics.X11.Xlib.Misc</literal>,
            <literal>allocaXSetWindowAttributes</literal> has been
            renamed <literal>allocaSetWindowAttributes</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>FontStruct</literal> type has moved from
            <literal>Graphics.X11.Xlib.Types</literal> to
            <literal>Graphics.X11.Xlib.Font</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            The
            <literal>Point</literal>,
            <literal>Rectangle</literal>,
            <literal>Arc</literal>,
            <literal>Segment</literal> and
            <literal>Color</literal> types in
            <literal>Graphics.X11.Xlib.Types</literal>
            are now proper datatypes rather than synonyms for tuples.
            They all have a <literal>Storable</literal> instance.
          </para>
        </listitem>
        <listitem>
          <para>
            The <literal>Byte</literal> and <literal>Short</literal>
            types from <literal>Graphics.X11.Xlib.Types</literal> have
            been removed.
            The following type synonyms, which had already been marked
            &quot;Backwards compatibility&quot;, have also been removed:
            <literal>ListPoint</literal>,
            <literal>ListRectangle</literal>,
            <literal>ListArc</literal>,
            <literal>ListSegment</literal> and
            <literal>ListColor</literal>.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>Eq</literal>,
            <literal>Ord</literal>,
            <literal>Show</literal>,
            <literal>Typeable</literal> and
            <literal>Data</literal> are now derived for:
            <literal>XEvent</literal>,
            <literal>FdSet</literal> and
            <literal>TimeZone</literal> in
            <literal>Graphics.X11.Xlib.Event</literal>,
            <literal>FontStruct</literal> in
            <literal>Graphics.X11.Xlib.Font</literal>,
            <literal>XErrorEvent</literal>,
            <literal>XComposeStatus</literal> and
            <literal>XTextProperty</literal> in
            <literal>Graphics.X11.Xlib.Misc</literal>,
            <literal>Region</literal> in
            <literal>Graphics.X11.Xlib.Region</literal>,
            <literal>Display</literal>,
            <literal>Screen</literal>,
            <literal>Visual</literal>,
            <literal>GC</literal>,
            <literal>GCValues</literal>,
            <literal>SetWindowAttributes</literal>,
            <literal>Point</literal>,
            <literal>Rectangle</literal>,
            <literal>Arc</literal>,
            <literal>Segment</literal> and
            <literal>Color</literal> in
            <literal>Graphics.X11.Xlib.Types</literal>.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>

    <sect3>
      <title>xhtml</title>
      <itemizedlist>
        <listitem>
          <para>
            Version 2006.8.14.
          </para>
        </listitem>
        <listitem>
          <para>
            <literal>xhtml</literal> is a new package, developing on
            what used to be <literal>Text.Html</literal> and
            <literal>Text.Html.BlockTable</literal> in the
            <literal>base</literal> package.
          </para>
        </listitem>
      </itemizedlist>
    </sect3>
  </sect2>

  <sect2>
    <title>Internal changes</title>
    <itemizedlist>
      <listitem>
        <para>
          GHC development now has its own integrated
          <ulink url="http://hackage.haskell.org/trac/ghc">wiki and bug
          tracker</ulink>.
        </para>
      </listitem>
      <listitem>
        <para>
          GHC has now moved to darcs. See
          <ulink
          url="http://hackage.haskell.org/trac/ghc/wiki/GhcDarcs">the
          wiki</ulink> for more details. The sources have moved around a
          bit within the tree as a result, most notably the GHC sources
          are no longer kept within a <filename>ghc/</filename>
          subdirectory.
        </para>
      </listitem>
      <listitem>
        <para>
          The native code generator is now capable of compiling loops,
          which gets us a big step closer to being able to compile
          entirely without gcc on well-supported arches.
        </para>
      </listitem>
    </itemizedlist>
  </sect2>
</sect1>