[Hugs] #77: Binding variables on the prompt

Hugs trac at galois.com
Mon Sep 17 02:50:48 EDT 2007


#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


More information about the Hugs-Bugs mailing list