
5 Oct
2011
5 Oct
'11
8:21 a.m.
Hi all, Simon PJ wrote:
should we not treat [a,b,c] as short for return a `mappend` return b `mappend` return c
[...]
I'm not sure if this plan would support [("fred",45), ("bill",22)] :: Map String Int. Probably not. Maybe that's a shortcoming... but such Maps are a rather surprising use of list literals.
Maybe. But not more surprising than how, say, numeric literals are used in many EDSLs. I also like George's proposal. Best, /Henrik -- Henrik Nilsson School of Computer Science The University of Nottingham nhn@cs.nott.ac.uk