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

Comment(by vivian):

 I have a working patch that uses simonmar's idea of checking the lexer
 state in alternative layout mode.

 There are now a couple of questions with respect to the GHCi documentation
 and #3984.

 * First, any open context (basically 'do' and 'let') will trigger
 multiline mode which is terminated by an empty (cf. blank) line.  We can
 also define something with a 'let':
 {{{
 Prelude> let foo = "Hello"
 Prelude|
 Prelude> foo
 "Hello"
 }}}
 which does not have an associated 'in.' In all these cases, an extra empty
 line is required.  Where in the documentation should we put this feature?

 * #3984 uses {{{:{}}} and {{{}:}}} to open and close a 'multiline' mode.
 I think this is now obsolete '''except''' if we want to have a 'where'
 clause.

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