
#11390: GHC does not warn about redundant patterns -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: warnings, | PatternMatchWarnings 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 rwbarton): Good point. If the return type was a type with values, the clause would ''really'' not be redundant! {{{ sillyFun :: F1 Char -> String sillyFun x = "hi" }}} Surely it doesn't make sense for redundancy of a pattern match to depend on what sort of thing is on the right hand side? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11390#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler