#77: Binding variables on the prompt

View: New views
1 Messages — Rating Filter:   Alert me  

#77: Binding variables on the prompt

by GHC-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#77: Binding variables on the prompt
-------------------------------------------------+--------------------------
 Reporter:  apfelmus                             |       Owner:  nobody
     Type:  enhancement                          |      Status:  new    
 Priority:  major                                |   Milestone:        
Component:  hugs                                 |     Version:  current
 Keywords:  interactive prompt variable binding  |  
-------------------------------------------------+--------------------------
In GHCi, it's possible to bind variables at the interactive prompt, like

 {{{
  > let x = 1
  > x + 1
  2
  > y <- readFile "Foo.bar"
  "Hello World"
  > length y
  11
 }}}

 The rule is that the bindings are legal in the do-notation for the IO-
 monad. For details, see
 [http://www.haskell.org/ghc/docs/latest/html/users_guide/ch03s04.html
 Interactive evaluation at the prompt] in the GHC user's guide. I'm dearly
 missing this feature in Hugs!

--
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/77>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell
_______________________________________________
Hugs-Bugs mailing list
Hugs-Bugs@...
http://www.haskell.org/mailman/listinfo/hugs-bugs
LightInTheBox - Buy quality products at wholesale price!