diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2016-06-23 08:50:45 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2016-06-23 09:24:29 +0100 |
commit | 643706e44935cd15c2248e5345dadd3e9804688e (patch) | |
tree | 2a1d3fb3abf8d5dec78b15bc8168049738edddb3 /compiler/rename/RnPat.hs | |
parent | e556f76875a28a97dd6618b8019bc11a1cc17b02 (diff) | |
download | haskell-643706e44935cd15c2248e5345dadd3e9804688e.tar.gz |
Narrow the warning for simplifiable constraints
In Trac #11948 I added the warning
-Wsimplifiable-class-constraints
which warns if the class constraints in a type signature are
simplifiable.
But in fact the fragility it warns about only happens with
NoMonoLocalBinds, so this patch switches off the warning if
you have MonoLocalBinds (and suggests using it in the error
message).
See Note [Simplifiable given constraints] in TcValidity.
Diffstat (limited to 'compiler/rename/RnPat.hs')
0 files changed, 0 insertions, 0 deletions