[GHC] #15284: Can't parse ''(*) in GHC HEAD

GHC ghc-devs at haskell.org
Sun Jun 17 19:40:51 UTC 2018


#15284: Can't parse ''(*) in GHC HEAD
-------------------------------------+-------------------------------------
           Reporter:  RyanGlScott    |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  highest        |         Milestone:  8.6.1
          Component:  Compiler       |           Version:  8.4.3
  (Parser)                           |
           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:
-------------------------------------+-------------------------------------
 I can't build the `reflection` library on GHC HEAD since the `''(*)`
 Template Haskell name no longer parses. Here is a smaller example which
 compares GHC 8.4.3 (what should happens) with HEAD (which fails):

 {{{
 $ /opt/ghc/8.4.3/bin/ghci -XTemplateHaskell
 GHCi, version 8.4.3: http://www.haskell.org/ghc/  :? for help
 Loaded GHCi configuration from /home/rgscott/.ghci
 λ> import GHC.TypeNats
 λ> ''(*)
 GHC.TypeNats.*
 }}}

 {{{
 $ ~/Software/ghc/inplace/bin/ghc-stage2 --interactive -XTemplateHaskell
 GHCi, version 8.5.20180617: http://www.haskell.org/ghc/  :? for help
 Loaded GHCi configuration from /home/rgscott/.ghci
 λ> import GHC.TypeNats
 λ> ''(*)

 <interactive>:2:4: error: parse error on input ‘*’
 }}}

 int-index, I believe this was caused by your commit
 d650729f9a0f3b6aa5e6ef2d5fba337f6f70fa60 (`Embrace -XTypeInType, add
 -XStarIsType`). Do you know what is going on here?

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


More information about the ghc-tickets mailing list