
#13839: GHC warnings do not respect the default module header -------------------------------------+------------------------------------- Reporter: Feuerbach | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 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: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * cc: RolandSenn (added) * status: new => infoneeded Comment: @Feuerbach: Can you still reproduce this? With ''cat T13869.hs'' {{{#!hs type T = Int main :: IO () main = return () }}} ''ghc --version && ghc -Wall T13893.hs'' I get {{{ The Glorious Glasgow Haskell Compilation System, version 8.6.2 [1 of 1] Compiling Main ( T13893.hs, T13893.o ) T13893.hs:1:1: warning: [-Wunused-top-binds] Defined but not used: type constructor or class âTâ | 1 | type T = Int | ^^^^^^^^^^^^ Linking T13893 ... }}} Even with GHC 8.0.1 I'm unable to reproduce your problem! How did you compile your program? What's your OS? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13839#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler