#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 | Milestone: Component: Compiler (Parser) | Version: 7.4.2 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Incorrect warning at compile-time Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ----------------------------------+----------------------------------------- Comment(by simonpj@…): commit 6d8d0dd94e3216ba2792f1eb9e9e086f188e1c56 {{{ Author: Simon Peyton Jones <simonpj@microsoft.com> Date: Mon Apr 29 17:31:21 2013 +0100 Exend the "Too few args" message for naked Ids (Trac #7851) Previously, for f :: [Bool] f = map not we'd get a helpful message Probable cause: ‛map’ is applied to too few arguments but not for f :: [Bool] f = map which seems a bit stupid. compiler/typecheck/TcExpr.lhs | 47 +++++++++++++++++++++++++++-------------- 1 files changed, 31 insertions(+), 16 deletions(-) }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7851#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler