
10 Nov
2005
10 Nov
'05
6:35 a.m.
Iavor Diatchki wrote:
import Data.Map (Map); import qualified Data.Map as Map hiding (Map)
PS: How do people import 'Data.Map'? The above seems clunky...
I only use: import qualified Data.Map as Map and write "Map.Map" in signatures, which is also a bit clunky. Would "Map.Type" be better? Not really, since I know there are only types in signatures. Cheers Christian P.S. your insert1 implementation is what I would do, too, if I only needed such a function. I wouldn't define insertWith in terms of insert1, though.