(I'm possibly slightly abusing the list, but no-one reads hugs-users!)
Would it be possible to make a hugs build time option to break with the
haskell report and allow lists that are written as
[1,2,3,] as well as [1,2,3]
or would it completely break the parser? (This is means behaving like perl
does, allowing lists @l=(1,2,3,) as well as @l=(1,2,3).) This would be
very useful if you're generating input to a haskell function from a
primitive language where it's easier to write out
cout<<"[";
for(i=0;i<l;++i) cout<<a[i]<<",";
cout<<"]";
than to do one of the more involved alternatives that gets the commas
right. (I tend to try and spot bugs in my C++ by running tests using
hacked together Haskell code in hugs, but people like Alex Jacobson may
also find it helpful if they're doing web type scripting (possibly))
Or is there any other reason for nod allowing it?
___cheers,_dave________________________________________________________
www.cs.bris.ac.uk/~tweed/pi.htm|ALERT: you are communicating with an
email: [EMAIL PROTECTED] |unsavoury individual with a copy of gdb
work tel: (0117) 954-5253 |who reverse-engineered a file format.