
29 Apr
2011
29 Apr
'11
1:22 a.m.
On Thu, Apr 28, 2011 at 07:19, Gracjan Polak
Sometimes I wish for a -fphp flag that would turn some type errors into warnings. [...] GHC could substitute 'y = error "Couldn't match expected type `[a]' against inferred type `()'"' and compile anyway.
PHP doesn't really do dynamic type errors, though. To be more like PHP, the -fphp flag should surely coerce y to a list, using read and show if possible and otherwise using unsafeCoerce. -- Jason Dusek () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments