goldfirere / th-desugar

Desugars Template Haskell abstract syntax to a simpler format without changing semantics
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

Add support for `SCC` pragmas (introduced in `template-haskell-2.22.0.0`) #202

Closed RyanGlScott closed 7 months ago

RyanGlScott commented 7 months ago

template-haskell-2.22.0.0 (shipped with GHC 9.10.1) includes support for SCC pragmas:

data Pragma
  = ...
  | SCCP Name (Maybe String)
    -- ^ @{ {\-\# SCC fun "optional_name" \#-} }@

We should add a corresponding DSCCP data constructor to DPragma in th-desugar.