
#10188: prefix type-level cons can't be parsed -------------------------------------+------------------------------------- Reporter: Kinokkory | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.4 (Parser) | Keywords: Resolution: | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: GHC rejects | Test Case: valid program | Blocking: Blocked By: | Differential Revisions: Related Tickets: | -------------------------------------+------------------------------------- Comment (by Kinokkory): Oh, I didn't know that. Thanks a lot! In a ghci: {{{#!hs
:kind! '(:::) '(:::) :: k -> Listy k -> Listy k = forall (k :: BOX). (':::) :kind! (':::)
<interactive>:1:3: parse error on input ‘:::’
:kind! (':)
<interactive>:1:3: parse error on input ‘:’ }}} The message "forall (k :: BOX). (':::)" seems inconsistent with the parsing mechanism that allows "'(:::)" instead of (':::). I'll report this as another new bug! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10188#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler