Duncan Coutts wrote:
On Mon, 2007-11-05 at 09:15 +0000, Simon Marlow wrote:
I think that -fno-print-bind-result should be the default. Several people
have asked for this, indeed I'm not sure why we didn't make it the default
when we added the option:
http://hackage.haskell.org/trac/ghc/ticket/887
I still like my suggestion (in the bug report above) of:
> content <- getContents
would not print anything, but
> getContents
would print. That seems reasonably intuitive to me.
Sure, that's exactly what -fno-print-bind-default does, and I agree it
should be the default.
I'm often annoyed by foo <- readFile printing the entire file contents
on my console. I know there is this flag to turn it off but I can never
remember what the flag is called. I have to look it up every time or
suffer pages of file content on my console.
Put it in your ~/.ghci :-)
Cheers,
Simon
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc