Skip to content
  • adam's avatar
    slightly better named cost-centres for simple pattern bindings #17006 · 588acb99
    adam authored and Marge Bot's avatar Marge Bot committed
    ```
    main = do
      print $ g [1..100] a
      where g xs x   = map (`mod` x) xs
            a :: Int = 324
    ```
    
    The above program previously attributed the cost of computing 324 to a cost
    centre named `(...)`, with this change the cost is attributed to `a` instead.
    
    This change only affects simple pattern bindings (decorated variables: type
    signatures, parens, ~ annotations and ! annotations).
    588acb99