[GHC] #7851: Give better diagnostic when arguments are omitted to a function call in do-notation

GHC cvs-ghc at haskell.org
Sat Apr 20 20:09:01 CEST 2013


#7851: Give better diagnostic when arguments are omitted to a function call in do-
notation
----------------------------------------------+-----------------------------
Reporter:  JohnWiegley                        |          Owner:                   
    Type:  feature request                    |         Status:  new              
Priority:  normal                             |      Component:  Compiler (Parser)
 Version:  7.4.2                              |       Keywords:                   
      Os:  MacOS X                            |   Architecture:  x86_64 (amd64)   
 Failure:  Incorrect warning at compile-time  |      Blockedby:                   
Blocking:                                     |        Related:                   
----------------------------------------------+-----------------------------

Comment(by JohnWiegley):

 The formatting was a little murdered, here is the code snippet:

 {{{
 import Control.Monad.Trans.State

 main = flip runStateT 10 $ do
     print
     print "Hello"
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7851#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list