[GHC] #10379: Prefix syntax for promoted list kind isn't parsed properly

GHC ghc-devs at haskell.org
Mon May 4 07:12:19 UTC 2015


#10379: Prefix syntax for promoted list kind isn't parsed properly
-------------------------------------+-------------------------------------
              Reporter:  cactus      |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  low         |         Milestone:
             Component:  Compiler    |           Version:  7.10.1
  (Parser)                           |  Operating System:  Unknown/Multiple
              Keywords:              |   Type of failure:  GHC rejects
          Architecture:              |  valid program
  Unknown/Multiple                   |        Blocked By:
             Test Case:              |   Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 (Originally from https://stackoverflow.com/questions/27673578/)

 Given the following input file:


 {{{
 {-# LANGUAGE KindSignatures, GADTs, DataKinds, TypeOperators #-}

 data Foo1 :: [*] -> * where
 data Foo2 :: ([] *) -> * where

 }}}

 it fails on the definition of `Foo2`:

 {{{
 list-promote2.hs:4:16: parse error on input `]'
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10379>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list