diff options
author | Vladislav Zavialov <vlad.z.4096@gmail.com> | 2019-11-12 10:56:57 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-12-05 16:07:44 -0500 |
commit | 84585e5e7c5d729ce38fa47ebaa7518acd14c2f1 (patch) | |
tree | 0420df471d093d543c6eaa05946f8da51758dd4b /testsuite/tests/perf | |
parent | f03a41d4bf9418ee028ecb51654c928b2da74edd (diff) | |
download | haskell-84585e5e7c5d729ce38fa47ebaa7518acd14c2f1.tar.gz |
Meaning-preserving SCC annotations (#15730)
This patch implements GHC Proposal #176:
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0176-scc-parsing.rst
Before the change:
1 / 2 / 2 = 0.25
1 / {-# SCC "name" #-} 2 / 2 = 1.0
After the change:
1 / 2 / 2 = 0.25
1 / {-# SCC "name" #-} 2 / 2 = parse error
Diffstat (limited to 'testsuite/tests/perf')
-rw-r--r-- | testsuite/tests/perf/compiler/T15164.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/perf/compiler/T15164.hs b/testsuite/tests/perf/compiler/T15164.hs index 0f29623228..1b67c901d5 100644 --- a/testsuite/tests/perf/compiler/T15164.hs +++ b/testsuite/tests/perf/compiler/T15164.hs @@ -252,7 +252,7 @@ instance Rule f Primary => Rule f Factor where -- ::= name newtype FormalDesignator = MkFormalDesignator (NT Name) instance Rule f Name => Rule f FormalDesignator where - get = trace "FormalDesignator" $ {-# SCC "get_FormalDesignator" #-} MkFormalDesignator <$> n93 + get = trace "FormalDesignator" $ {-# SCC "get_FormalDesignator" #-} (MkFormalDesignator <$> n93) -- formal_part -- ::= formal_designator |