[GHC] #14755: Allow putting SCC annotations on class instance methods
GHC
ghc-devs at haskell.org
Sun Feb 4 12:14:50 UTC 2018
#14755: Allow putting SCC annotations on class instance methods
-------------------------------------+-------------------------------------
Reporter: niteria | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Profiling | Version:
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by niteria):
> Do you not get the same effect with -fprof-auto-top if you do foo a =
{-# SCC foo #-} show a?
Yes, that works, but if `foo` does pattern matching on the parameters, you
need to put multiple `SCCs` or refactor the code.
You can also make `fooHelper` that's a top level function and just `foo =
fooHelper`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14755#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list