[GHC] #11313: Awkward error message "Expecting one fewer argument to ‘*’"

#11313: Awkward error message "Expecting one fewer argument to ‘*’" -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.11 (Type checker) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The first error below has a strange first line. Admittedly the input is nonsense, but as `*` has no arguments, according to the March Hare, it can't have one fewer argument. Note that the second error does not contain this problematic line. {{{ rwbarton@morphism:/tmp$ ~/ghc-newest/inplace/bin/ghc-stage2 --interactive GHCi, version 7.11.20151228: http://www.haskell.org/ghc/ :? for help Prelude> import Data.Kind Prelude Data.Kind> :set -XTypeApplications Prelude Data.Kind> :t fmap @ (*) <interactive>:1:8: error: • Expecting one fewer argument to ‘*’ Expected kind ‘* -> *’, but ‘*’ has kind ‘*’ • In the type ‘*’ In the expression: fmap @* Prelude Data.Kind> :t fmap @ Int <interactive>:1:8: error: • Expected kind ‘* -> *’, but ‘Int’ has kind ‘*’ • In the type ‘Int’ In the expression: fmap @Int }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11313 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11313: Awkward error message "Expecting one fewer argument to ‘*’"
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler (Type | Version: 7.11
checker) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Richard Eisenberg

#11313: Awkward error message "Expecting one fewer argument to ‘*’" -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: merge Priority: low | Milestone: Component: Compiler (Type | Version: 7.11 checker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/should_fail/T11313 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => merge * testcase: => typecheck/should_fail/T11313 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11313#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11313: Awkward error message "Expecting one fewer argument to ‘*’" -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: closed Priority: low | Milestone: 8.0.1 Component: Compiler (Type | Version: 7.11 checker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | typecheck/should_fail/T11313 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed * milestone: => 8.0.1 Comment: Merged to `ghc-8.0` as b2db13a7e7b693419170216ea6f74dc92723a8a9. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11313#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC