haskell-suite/haskell-src-exts

Parsing SCC annotation with omitted quotes identifier

sighingnow opened this issue · 1 comments

In {-# SCC #-} annotation, The double quotes can be omitted if name is a Haskell identifier. But current haskell-src-exts doesn't support this feature. As presented in tests/examples/Ppr048.hs, when quotes are omitted we get a parser error.

{-# SCC foo #-}
foo :: Int -> Int
foo x = x

Related issue: mihaimaruseac/hindent#408.

The more serious problem here is that top level SCC pragmas are not implemented yet.