On Thu, Apr 28, 2011 at 07:19, Gracjan Polak <gracjanpo...@gmail.com> wrote:
> 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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to