#4316: Interactive "do" notation in GHCi
---------------------------------+------------------------------------------
    Reporter:  mitar             |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  GHCi              |      Version:  6.12.3      
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by igloo):

 Not exactly the same as is being suggested, but this works in 7.0:
 {{{
 Prelude Control.Monad.State> :{
 Prelude Control.Monad.State| flip evalStateT 1 $ do
 Prelude Control.Monad.State|             i <- get
 Prelude Control.Monad.State|             lift $ putStrLn $ show i
 Prelude Control.Monad.State|             return $ i + 1
 Prelude Control.Monad.State| :}
 Loading package mtl-1.1.1.0 ... linking ... done.
 1
 2
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4316#comment:6>
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