Skip to content

Can't parse ''(*) in GHC HEAD

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 d650729f (Embrace -XTypeInType, add -XStarIsType). Do you know what is going on here?

Trac metadata
Trac field Value
Version 8.4.3
Type Bug
TypeOfFailure OtherFailure
Priority highest
Resolution Unresolved
Component Compiler (Parser)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC int-index
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information