[Haskell-cafe] How can I stop GHCi from calling "show" for IOactions?

Simon Peyton-Jones simonpj at microsoft.com
Fri Sep 21 03:03:04 EDT 2007

| I think a more consistent behavior would be to not print the LHS at
| all.  If you wanted to print the result of the computation you could
| just do:
|     Prelude> bar 5
| or, if you also wanted bound variables afterwards:
|     Prelude> (x, Just y) <- bar 5
|     Prelude> (x, Just y)

I've added Ryan's comments to

Others might want to add further suggestions there.


More information about the Haskell-Cafe mailing list