
#7851: Give better diagnostic when arguments are omitted to a function call in do- notation ------------------------------------------------+--------------------------- Reporter: JohnWiegley | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler (Parser) | Version: 7.4.2 Resolution: fixed | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Incorrect warning at compile-time | Difficulty: Unknown Testcase: typecheck/should_fail/T7851 | Blockedby: Blocking: | Related: ------------------------------------------------+--------------------------- Changes (by simonpj): * status: new => closed * testcase: => typecheck/should_fail/T7851 * resolution: => fixed Comment: Good point. I've improved it a bit, so it does indeed now complain about too few args. This code was there all the time, but wasn't used for functions applied to ''no'' arguments; it only sprang to life if the function was applied to at least one argument. Now it works with zero arguments too. Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7851#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler