#4316: Enable GHCi to run commands under StateT monad based on IO
---------------------------------+------------------------------------------
    Reporter:  mitar             |       Owner:              
        Type:  feature request   |      Status:  new         
    Priority:  normal            |   Component:  GHCi        
     Version:  6.12.3            |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 Enable GHCi to run commands under StateT monad based on IO or maybe even
 any other monad based on IO. So that you could for example exec a state
 and "fall" into this monad.

 This could be generalized by supporting interactive "do" notation.
 Currently doing something like:

 {{{
 (flip execStateT) state $ do
 }}}

 raises "Empty 'do' construct" warning, but GHCi could go into interactive
 mode where it would be possible to write one command after another and it
 would execute them.

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