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

Comment(by vivian):

 Replying to [comment:6 igloo]:
 > Not exactly the same as is being suggested, but this works in 7.0:
 {{{Prelude Control.Monad.State> :{}}}

 Personally, I could live with typing {{{:{}}} before a multiline GHCi
 expression.  Especially since (see above) I advocated the syntactic
 'batch' versus semantic 'line at a time' reading.

 However, I am working on libraries that provide matlab-like functionality
 at the !programming-language interpreter! level of GHCi.  Multiline "do"
 statements are part of the Haskell specification (which the odd
 mathematical _user_ might deign to peruse), whereas this "observe
 formatting" GHCi meta-":" command is not standard.

 There is a tension here between "users" and "programmers."  The beauty of
 Haskell includes a succinct and elegant syntax.  So much so, that I
 believe that we can blur the line when using GHCi between an applied
 mathematics environment and a programming environment.

 I'd like to see Haskell used by non-programmer mathematicians.

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