[Haskell-cafe] how to avoid overlapping instance error?
simonpj at microsoft.com
Mon Feb 28 18:50:20 EST 2005
| Or I suppose, one could rephrase this question as why not
| simplify instance declarations to be:
| instance ToSet where
| toSet = Set.fromList
| And let the typechecker take care of figuring out what instance is
| being specified here?
That might be possible, but Haskell forces you to be a bit more
explicit, that's all.
More information about the Haskell-Cafe