Two Proposals
Henrik Nilsson
nhn at Cs.Nott.AC.UK
Wed Oct 5 14:21:36 CEST 2011
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 at cs.nott.ac.uk
More information about the Glasgow-haskell-users
mailing list