Changes between Version 21 and Version 22 of Migration/8.2


Ignore:
Timestamp:
Jun 15, 2017 10:24:22 AM (2 years ago)
Author:
hvr
Comment:

Add forward-compat recommendation

Legend:

Unmodified
Added
Removed
Modified
  • Migration/8.2

    v21 v22  
    166166=== `base-4.10.0.0`
    167167
     168==== Recommendations for forward-compatibility
     169
     170{{{#!box tip
     171
     172In order to future-proof your packages for upcoming changes, add the following snippet to your `.cabal` file, and address the warnings emitted by GHC when compiling your package:
     173
     174{{{
     175  if impl(ghc >= 8.0)
     176    ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
     177  else
     178    -- provide/emulate `Control.Monad.Fail` and `Data.Semigroups` API for pre-GHC8
     179    build-depends: fail == 4.9.*, semigroups == 0.18.*
     180}}}
     181
     182
     183See wiki:Migration/8.0#base-4.9.0.0 for more details
     184}}}
     185
    168186==== Type-indexed `Typeable` changes ====
    169187  * The `Data.Typeable.Internal` module has been removed entirely. Much of the `Typeable` internals now live in the new `Type.Reflection` module.