[Haskell-cafe] Ambiguous reified dictionaries

Martijn van Steenbergen martijn at van.steenbergen.nl
Thu Apr 9 04:57:24 EDT 2009


Lennart Augustsson wrote:
> That program is incorrect, it contains two instances for Monoid Int,
> and the compiler should flag it as illegal.

Two simultaneous instances are okay as long as you don't use any of 
those instances, right? Just like two imported symbols with the same 
name are okay as long as you don't use them.

Martijn.



More information about the Haskell-Cafe mailing list