[GHC] #11474: incorrect redundant-constraints warning

GHC ghc-devs at haskell.org
Thu Jan 21 13:14:46 UTC 2016


#11474: incorrect redundant-constraints warning
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler (Type    |              Version:  8.0.1-rc1
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Good point.  Indeed the evidence for `AllNullary` is not used, but its
 functional dependencies are.  I don't know how to reliably detect that.

 I suppose I could not warn if the class has functional dependencies.  (Or
 maybe if any of its superclasses, transititively, do?)

 Meanwhile I think we've agreed that this warning will be off by default
 for 8.0 so you won't see it anyway.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11474#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list