Skip to content

Parsing SCC annotation with omitted quotes identifier #392

Open
@sighingnow

Description

@sighingnow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions