#4316: Interactive "do" notation in GHCi
------------------------------+---------------------------------------------
  Reporter:  mitar            |          Owner:                  
      Type:  feature request  |         Status:  new             
  Priority:  normal           |      Milestone:  7.4.1           
 Component:  GHCi             |        Version:  7.0.3           
Resolution:                   |       Keywords:                  
  Testcase:                   |      Blockedby:  4459            
Difficulty:                   |             Os:  Unknown/Multiple
  Blocking:                   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown     |  
------------------------------+---------------------------------------------
Changes (by daniel.is.fischer):

  * version:  6.12.3 => 7.0.3


Comment:

 The test is in 7.0.3's testsuite, but the patch doesn't seem to be in:
 {{{
 Actual stderr output differs from expected:
 --- /dev/null   2011-04-02 10:56:44.408004588 +0200
 +++ ./ghci/scripts/T4316.run.stderr.normalised  2011-04-02
 17:00:07.000000000 +0200
 @@ -0,0 +1,20 @@
 +
 +<interactive>:1:22: Empty 'do' construct
 +
 +<interactive>:1:6:
 +    No instance for (MonadState t0 IO)
 +      arising from a use of `get'
 +    Possible fix: add an instance declaration for (MonadState t0 IO)
 +    In a stmt of an interactive GHCi command: i <- get
 +
 +<interactive>:1:8: Empty 'do' construct
 +
 +<interactive>:1:7: Not in scope: `i'
 +
 +<interactive>:1:1: parse error on input `in'
 +
 +<interactive>:1:10: parse error (possibly incorrect indentation)
 +
 +<interactive>:1:7: parse error on input `->'
 +
 +<interactive>:1:7: parse error on input `->'
 *** unexpected failure for T4316(ghci)
 }}}
 Trying :set +m in ghci results in {{{unknown option: 'm'}}}.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4316#comment:37>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to