[Haskell-cafe] Call for discussion: OverloadedLists extension

wren ng thornton wren at freegeek.org
Thu Sep 27 02:07:44 CEST 2012

On 9/25/12 1:57 PM, Sjoerd Visscher wrote:
>> Maybe we could make a literal [a,b,c] turn into
>> 	unpack [a,b,c]#
>> where
>> 	[a,b,c]#
>> is a statically-allocated vector?

I'm kinda surprised this isn't already being done. Just doing this seems 
like it'd be a good undertaking, regardless of whether we get overloaded 
list literals. Just storing the literal as a C-like array and inflating 
it to a list/array/vector at runtime seems like it should be a big win 
for code that uses a lot of literals.

Live well,

More information about the Haskell-Cafe mailing list