On Sun, Jul 17, 2011 at 18:03, Jack Henahan wrote:
> Is there really no question? I question the assertion, for one. Just because
> a language allows a bad habit doesn't mean it's a feature. Leaving your
> handles open can lead to unpredictable results, which is somewhat anathema to
> the idea
Is there really no question? I question the assertion, for one. Just because a
language allows a bad habit doesn't mean it's a feature. Leaving your handles
open can lead to unpredictable results, which is somewhat anathema to the idea
of correct programs, unless broken features are part of your
On Sun, Jul 17, 2011 at 1:40 PM, Donn Cave wrote:
> The use of withFile on the main function is a good practice in Haskell
> only because of this defect in the GHC library implementation.
Well, I've always closed my handles on all languages I've programmed.
Actually, now I remember that some stud
Quoth Felipe Almeida Lessa ,
> On Sun, Jul 17, 2011 at 10:41 AM, Paul Johnson wrote:
>> If you open a file for writing and then exit with output unflushed, then
>> Haskell does not flush the file for you. Â In ghci the program seems to work,
>> but then when you compile it in ghc it mysteriously f
On Sun, Jul 17, 2011 at 10:41 AM, Paul Johnson wrote:
> If you open a file for writing and then exit with output unflushed, then
> Haskell does not flush the file for you. In ghci the program seems to work,
> but then when you compile it in ghc it mysteriously fails.
>
> I've just been bitten by
If you open a file for writing and then exit with output unflushed, then
Haskell does not flush the file for you. In ghci the program seems to
work, but then when you compile it in ghc it mysteriously fails.
I've just been bitten by this, but when I went to the bug tracker I
found http://hack