[GHC] #10532: Unnecessary constraints when using overlapping instances

GHC ghc-devs at haskell.org
Tue Jun 16 04:52:16 UTC 2015


#10532: Unnecessary constraints when using overlapping instances
-------------------------------------+-------------------------------------
        Reporter:  MikeIzbicki       |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler (Type    |                 Version:  7.10.1
  checker)                           |                Keywords:
      Resolution:                    |            Architecture:
Operating System:  Unknown/Multiple  |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by MikeIzbicki):

 Would something bad happen if GHC had the behavior I expected of
 automatically inferring the constraint?

 @rwbarton I don't understand what you mean.  If I open the code in ghci I
 can evaluate the function f on any input whenever ghc actually compiles
 the code.

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


More information about the ghc-tickets mailing list