[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-cafe
Subject: RE: [Haskell-cafe] how to avoid overlapping instance error?
From: "Simon Peyton-Jones" <simonpj () microsoft ! com>
Date: 2005-02-28 23:50:20
Message-ID: 036EAC76E7F5EC4996A3B3C3657D411601CCC854 () EUR-MSG-21 ! europe ! corp ! microsoft ! com
[Download RAW message or body]
| 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.
Simon
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic