diff options
author | Richard Eisenberg <rae@richarde.dev> | 2019-11-07 16:06:10 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-11-10 01:06:48 -0500 |
commit | fa25c8c49464c3306b8c166fecc2bf5686d21996 (patch) | |
tree | dc6f36e6a47d88222dcc5ff02b8c5de28b4c3061 /docs | |
parent | 6f4c125017aa39dee3701134ac2a4882525f8471 (diff) | |
download | haskell-fa25c8c49464c3306b8c166fecc2bf5686d21996.tar.gz |
Update release notes about #16512 / #17405.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/8.10.1-notes.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/users_guide/8.10.1-notes.rst b/docs/users_guide/8.10.1-notes.rst index 5e7356ab2c..d9b48d95e0 100644 --- a/docs/users_guide/8.10.1-notes.rst +++ b/docs/users_guide/8.10.1-notes.rst @@ -141,6 +141,18 @@ Language inferred type is higher-rank. GHC 8.10 will now reject this, as one must now enable :ghc-flag:`-XRankNTypes` in ``B`` to accept the inferred type signature. +- Type family dependencies (also known as injective type families) + sometimes now need ``-XUndecidableInstances`` in order to be + accepted. Here is an example:: + + type family F1 a = r | r -> a + type family F2 a = r | r -> a + type instance F2 [a] = Maybe (F1 a) + + Because GHC needs to look under a type family to see that ``a`` is determined + by the right-hand side of ``F2``\'s equation, this now needs ``-XUndecidableInstances``. + The problem is very much akin to its need to detect some functional dependencies. + Compiler ~~~~~~~~ |