Re: [GHC] #887: GHCi prints results of IO actions

2006-09-27 Thread GHC
#887: GHCi prints results of IO actions
--+-
  Reporter:  guest|  Owner:
  Type:  bug  | Status:  closed
  Priority:  normal   |  Milestone:
 Component:  GHCi |Version:  6.5   
  Severity:  normal   | Resolution:  fixed 
  Keywords:   | Os:  Linux 
Difficulty:  Unknown  |   Architecture:  x86   
--+-
Changes (by simonmar):

  * resolution:  = fixed
  * status:  new = closed

Comment:

 Done; to disable the printing behaviour for bindings, use
 {{{
 :set -fno-print-bind-result
 }}}
 in GHCi (or -fno-print-bind-result on the command line).

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/887
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #887: GHCi prints results of IO actions

2006-09-08 Thread GHC
#887: GHCi prints results of IO actions
--+-
  Reporter:  guest|  Owner:   
  Type:  bug  | Status:  new  
  Priority:  normal   |  Milestone:   
 Component:  GHCi |Version:  6.5  
  Severity:  normal   | Resolution:   
  Keywords:   | Os:  Linux
Difficulty:  Unknown  |   Architecture:  x86  
--+-
Comment (by simonpj):

 We changed it because a lot of the time it's very convenenient to see the
 result of an action.  But you have a good point.

 (As an unsatisfactory workaround, you could wrap x an un-Showable
 constructor, or in a function; but that changes its type.)

 What do others think?  Return to old behaviour?  Have another settable
 option?  Or what?

 Simon

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/887
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #887: GHCi prints results of IO actions

2006-09-08 Thread Donald Bruce Stewart
trac:
 #887: GHCi prints results of IO actions
 --+-
   Reporter:  guest|  Owner:   
   Type:  bug  | Status:  new  
   Priority:  normal   |  Milestone:   
  Component:  GHCi |Version:  6.5  
   Severity:  normal   | Resolution:   
   Keywords:   | Os:  Linux
 Difficulty:  Unknown  |   Architecture:  x86  
 --+-
 Comment (by simonpj):
 
  We changed it because a lot of the time it's very convenenient to see the
  result of an action.  But you have a good point.
 
  (As an unsatisfactory workaround, you could wrap x an un-Showable
  constructor, or in a function; but that changes its type.)
 
  What do others think?  Return to old behaviour?  Have another settable
  option?  Or what?
 

I was thinking about this a bit.

Ideally we'd have:
:set verbose
:unset verbose

or similarly, to switch between the two behaviours.

-- Don
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #887: GHCi prints results of IO actions

2006-09-08 Thread GHC
#887: GHCi prints results of IO actions
--+-
  Reporter:  guest|  Owner:   
  Type:  bug  | Status:  new  
  Priority:  normal   |  Milestone:   
 Component:  GHCi |Version:  6.5  
  Severity:  normal   | Resolution:   
  Keywords:   | Os:  Linux
Difficulty:  Unknown  |   Architecture:  x86  
--+-
Comment (by duncan):

 Would it be possible to distinguish based on the syntax?

 {{{
 content - getContents
 }}}

 would not print anything, but

 {{{
 getContents
 }}}

 would print. That seems reasonably intuitive to me.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/887
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #887: GHCi prints results of IO actions

2006-09-04 Thread GHC
#887: GHCi prints results of IO actions
---+
Reporter:  guest   |Owner: 
Type:  bug |   Status:  new
Priority:  normal  |Milestone: 
   Component:  GHCi|  Version:  6.5
Severity:  normal  | Keywords: 
  Os:  Linux   |   Difficulty:  Unknown
Architecture:  x86 |  
---+
Apparently, ghci has changed its behaviour from 6.4 to print the result of
 IO actions, even if assinged to a variable.  I often do something like


 {{{
 ghci x - myParser largeFile
 }}}


 in order to do various tests on x.  Having the contents of x dumped to the
 monitor is annoying,
 and defeats laziness testing completely.

 -ketil

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/887
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs