Skip to content
  • Simon Marlow's avatar
    [project @ 2001-02-26 15:06:57 by simonmar] · 1c62b517
    Simon Marlow authored
    Implement do-style bindings on the GHCi command line.
    
    The syntax for a command-line is exactly that of a do statement, with
    the following meanings:
    
      - `pat <- expr'
        performs expr, and binds each of the variables in pat.
    
      - `let pat = expr; ...'
        binds each of the variables in pat, doesn't do any evaluation
    
      - `expr'
        behaves as `it <- expr' if expr is IO-typed, or `let it = expr'
        followed by `print it' otherwise.
    1c62b517