ghci value printing

Lemmih lemmih at gmail.com
Fri Apr 27 11:52:20 EDT 2007


On 4/27/07, Frederik Eaton <frederik at a5.repetae.net> wrote:
> Hello,
>
> It seems the printing behaviour of ghci has changed recently?
>
> $ ghci --version
> The Glorious Glasgow Haskell Compilation System, version 6.4.2
> $ ghci
> ...
> > return 5 --(a0)
> > x <- return 5 --(b0)
> > Leaving GHCi.
>
> $ ghci --version
> The Glorious Glasgow Haskell Compilation System, version 6.6.20070420
> $ ghci
> ...
> > return 5 --(a1)
> 5
> > x <- return 5 --(b1)
> 5
> > Leaving GHCi.
>
> I like the new printing behaviour for (a1), but not for (b1). How do I
> bind a variable to the result of an IO action without printing that
> variable? Sometimes the variable is so large that 'show' runs out of
> memory. Perhaps I should fix my code so this doesn't happen but I
> think it would also be nice to go back to behaviour (b0) where values
> assigned to variables are not printed...

http://www.haskell.org/ghc/docs/latest/html/users_guide/ch03s04.html#ghci-stmts

-- 
Cheers,
  Lemmih
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



More information about the Glasgow-haskell-bugs mailing list