I'm sure we'd get complaints if we did something wide ranging
like switching off the printing of IO-results.
i was thinking of a switch, in the sense of an option/flag, similar
to print-bind-results.
So we just documented the obscure behaviour. Let's see if
it bites anyone.
consider mine the first complaint, then;-)
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
see also http://hackage.haskell.org/trac/ghc/ticket/1721
as i said in the comment there, i don't see a point in default
printing of bindings, as i can always refer to the variables,
but i agree that having a flag to make that optional is okay
(just print all or nothing, without those special cases, please).
the same goes for non-bind actions, as their results are
implicitly bound to "it" (note that using the void trick to
avoid printing loses the result..). but i have seen cases
where the lack of results was confusing. again, a flag to
control result printing would probably serve both camps
best (although i suspect that the confusing cases are better
addressed by refering to the flag for printing result *types*,
which would also advertise the availability of "it").
always printing results, without giving the user the chance
to switch that off, loses control over evaluation. even if
i want to inspect the result directly before passing it on,
these days i might use :print instead of print.
claus
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc