8.2.1-notes.rst 5.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
.. _release-8-2-1:

Release notes for version 8.2.1
===============================

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 8.0 branch.

Highlights
----------

The highlights since the 8.0 branch are:

- TODO FIXME
16
- SCC annotations can now be used for declarations.
17 18 19 20 21 22 23 24 25

Full details
------------

Language
~~~~~~~~

-  TODO FIXME.

26 27 28
- Pattern synonym signatures can now be applied to multiple patterns, just like
  value-level binding signatures. See :ref:`patsyn-typing` for details.

29 30 31
Compiler
~~~~~~~~

32
-  TODO FIXME.
33

34
- Old profiling flags ``-auto-all``, ``-auto``, and ``-caf-all`` are deprecated
35
  and their usage provokes a compile-time warning.
36 37 38 39

- Support for adding cost centres to declarations is added. The same `SCC`
  syntax can be used, in addition to a new form for specifying the cost centre
  name. See :ref:`scc-pragma` for examples.
40

Ryan Scott's avatar
Ryan Scott committed
41 42 43 44
- It is now possible to explicitly pick a strategy to use when deriving a
  class instance using the :ghc-flag:`-XDerivingStrategies` language extension
  (see :ref:`deriving-strategies`).

45 46 47 48 49 50 51 52 53 54 55 56 57 58
- GHC now allows standalone deriving using :ghc-flag:`-XDeriveAnyClass` on
  any data type, even if its data constructors are not in scope. This is
  consistent with the fact that this code (in the presence of
  :ghc-flag:`-XDeriveAnyClass`): ::

      deriving instance C T

  is exactly equivalent to: ::

      instance C T

  and the latter code has no restrictions about whether the data constructors
  of ``T`` are in scope.

59 60 61 62 63
GHCi
~~~~

-  TODO FIXME.

64 65
- Added :ghc-flag:`-flocal-ghci-history` which uses current directory for `.ghci-history`.

66 67 68 69 70
Template Haskell
~~~~~~~~~~~~~~~~

-  TODO FIXME.

71 72 73 74 75 76 77 78
-  Reifying types that contain unboxed tuples now works correctly. (Previously,
   Template Haskell reified unboxed tuples as boxed tuples with twice their
   appropriate arity.)

-  Splicing singleton unboxed tuple types (e.g., ``(# Int #)``) now works
   correctly. Previously, Template Haskell would implicitly remove the
   parentheses when splicing, which would turn ``(# Int #)`` into ``Int``.

79 80 81 82 83
Runtime system
~~~~~~~~~~~~~~

-  TODO FIXME.

84 85 86 87
- The :ref:`heap profiler <prof-heap>` can now emit heap census data to the GHC
  event log, allowing heap profiles to be correlated with other tracing events
  (see :ghc-ticket:`11094`).

Tamar Christina's avatar
Tamar Christina committed
88 89
- Added NUMA support to Windows.

90 91 92 93
- Added processor group support for Windows. This allows the runtime to allocate
  threads to all cores in systems which have multiple processor groups.
  (e.g. > 64 cores, see :ghc-ticket:`11054`)

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
Build system
~~~~~~~~~~~~

-  TODO FIXME.

Package system
~~~~~~~~~~~~~~

-  TODO FIXME.

hsc2hs
~~~~~~

-  TODO FIXME.

Libraries
---------

array
~~~~~

-  Version number XXXXX (was 0.5.0.0)


.. _lib-base:

base
~~~~

See ``changelog.md`` in the ``base`` package for full release notes.

-  Version number 4.10.0.0 (was 4.9.0.0)

127 128
- ``Data.Either`` now provides ``fromLeft`` and ``fromRight``

129 130 131
- ``Data.Type.Coercion`` now provides ``gcoerceWith``, which is analogous to
  ``gcastWith`` from ``Data.Type.Equality``.

132 133 134 135 136 137
- The ``Read1`` and ``Read2`` classes in ``Data.Functor.Classes`` have new
  methods, ``liftReadList(2)`` and ``liftReadListPrec(2)``, that are defined in
  terms of ``ReadPrec`` instead of ``ReadS``. This matches the interface
  provided in GHC's version of the ``Read`` class, and allows users to write
  more efficient ``Read1`` and ``Read2`` instances.

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
binary
~~~~~~

-  Version number XXXXX (was 0.7.1.0)

bytestring
~~~~~~~~~~

-  Version number XXXXX (was 0.10.4.0)

Cabal
~~~~~

-  Version number XXXXX (was 1.18.1.3)

containers
~~~~~~~~~~

-  Version number XXXXX (was 0.5.4.0)

deepseq
~~~~~~~

-  Version number XXXXX (was 1.3.0.2)

directory
~~~~~~~~~

-  Version number XXXXX (was 1.2.0.2)

filepath
~~~~~~~~

-  Version number XXXXX (was 1.3.0.2)

ghc
~~~

176
-
177 178 179 180 181 182 183 184 185 186 187 188
ghc-boot
~~~~~~~~

-  This is an internal package. Use with caution.

-  TODO FIXME.

ghc-prim
~~~~~~~~

-  Version number XXXXX (was 0.3.1.0)

189
-  Added new ``isByteArrayPinned#`` and ``isMutableByteArrayPinned#`` operation.
190

191 192 193
-  New function ``noinline`` in ``GHC.Magic`` lets you mark that a function
   should not be inlined.  It is optimized away after the simplifier runs.

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
haskell98
~~~~~~~~~

-  Version number XXXXX (was 2.0.0.3)

haskell2010
~~~~~~~~~~~

-  Version number XXXXX (was 1.1.1.1)

hoopl
~~~~~

-  Version number XXXXX (was 3.10.0.0)

hpc
~~~

-  Version number XXXXX (was 0.6.0.1)

integer-gmp
~~~~~~~~~~~

-  Version number XXXXX (was 0.5.1.0)

old-locale
~~~~~~~~~~

-  Version number XXXXX (was 1.0.0.6)

old-time
~~~~~~~~

-  Version number XXXXX (was 1.1.0.2)

process
~~~~~~~

-  Version number XXXXX (was 1.2.0.0)

template-haskell
~~~~~~~~~~~~~~~~

-  Version number XXXXX (was 2.9.0.0)

239 240
-  Added support for unboxed sums :ghc-ticket:`12478`.

241 242
-  Added support for visible type applications :ghc-ticket:`12530`.

243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
time
~~~~

-  Version number XXXXX (was 1.4.1)

unix
~~~~

-  Version number XXXXX (was 2.7.0.0)

Win32
~~~~~

-  Version number XXXXX (was 2.3.0.1)

Known bugs
----------

-  TODO FIXME