
#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 rwbarton): In any event, what you seem to want is impossible: `f :: a -> Int` can never dispatch on the type of `a`, even with IncoherentInstances or any other language extension. You really must have the constraint if you want to use it! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10532#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler