Mon Oct 12 08:29:55 PDT 2009  Simon Marlow <[email protected]>
  * Make hGetContents throw an exception if an error is encountered
  Ignore-this: 9f7a7176193eab25c9daaacd9261f2de
  
  Strictly speaking this breaks Haskell 98 compatibility, which requires
  hGetContents to just end the lazy stream silently if an error is
  encountered.  However, for a few reasons we think it will make
  everyone's life a bit easier if we make this change
  
   1. Errors will be a lot more common in GHC 6.12.1, in the form
      of Unicode decoding errors.
  
   2. When Haskell 98 was designed, we didn't know how to throw
      exceptions from inside lazy I/O, but now we do.
  
   3. If anyone is actually relying on the previous behaviour, their
      code is arguably broken.

    M ./GHC/IO/Handle/Text.hs -6 +7

View patch online:
http://darcs.haskell.org/ghc-6.12/packages/base/_darcs/patches/20091012152955-12142-1a426aa18bac51830194bd9bb2355877b3db7c18.gz
_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to