Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,345
    • Issues 5,345
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 568
    • Merge requests 568
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #17834
Closed
Open
Issue created Feb 13, 2020 by Brandon Chinn@brandon-leapyearDeveloper

Support RecordWildCards in HPC

Summary

Data type records are marked as "never executed" when I use them only with RecordWildCards. The same could probably be said for NamedFieldPuns as well.

Steps to reproduce

{-# LANGUAGE RecordWildCards #-}

data Foo = Foo
  { foo1 :: Int
  , foo2 :: Int
  }

showFoo :: Foo -> IO ()
showFoo Foo{..} = print (foo1, foo2)

main = showFoo (Foo 1 2)

Running the above with coverage shows foo1 and foo2 as uncovered.

Main.hs Main.hs.html

Expected behavior

foo1 and foo2 should be marked as "hit"

Environment

  • GHC version used: 8.8.1

Optional:

  • Operating System: MacOS 10.14.6
  • System Architecture:
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking