Forked from
        Glasgow Haskell Compiler / GHC 
 6956 commits behind, 1 commit ahead of the upstream repository.
          Bartłomiej Cieślar
        authored
        
 It adds a warning -Wincomplete-record-selectors for usages of a record
field access function (either a record selector or getField @"rec"),
while trying to silence the warning whenever it can be sure that a constructor
without the record field would not be invoked (which would otherwise cause
the program to fail). For example:
    data T = T1 | T2 {x :: Bool}
    f a = x a -- this would throw an error
    g T1 = True
    g a = x a -- this would not throw an error
    h :: HasField "x" r Bool => r -> Bool
    h = getField @"x"
    j :: T -> Bool
    j = h -- this would throw an error because of the `HasField`
          -- constraint being solved
See the tests DsIncompleteRecSel* and TcIncompleteRecSel for more examples of the warning.
See Note [Detecting incomplete record selectors] in GHC.HsToCore.Expr for implementation details Code owners
      
 Assign users and groups as approvers for specific file changes. Learn more.
 | Name | Last commit | Last update | 
|---|---|---|
| .. | ||
| GHC | ||
| Language/Haskell | ||
| cbits | ||
| jsbits | ||
| .hlint.yaml | ||
| CodeGen.Platform.h | ||
| GHC.hs | ||
| LICENSE | ||
| Setup.hs | ||
| Unique.h | ||
| flattening-notes | ||
| ghc-llvm-version.h.in | ||
| ghc.cabal.in | ||
| profiling-notes | ||