
#15957: Provide warning for when RecordWildCards LHS {..} doesn't bind anything. -------------------------------------+------------------------------------- Reporter: Fuuzetsu | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 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 pacak):
If you compile with -wall you don’t get an unused variable warning?
No. {{{ % ghc -Weverything foo.hs ~ [1 of 1] Compiling M ( foo.hs, foo.o ) foo.hs:1:1: warning: [-Wimplicit-prelude] Module `Prelude' implicitly imported | 1 | {-# LANGUAGE RecordWildCards #-} | ^ <no location info>: warning: [-Wsafe] ‘M’ has been inferred as safe! }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15957#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler