#7245: INLINEing top-level patterns causes ghc to emit 'arity missing' traces ------------------------------+--------------------------------------------- Reporter: jwlato | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.6.1 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Testcase: Blockedby: | Blocking: Related: | ------------------------------+--------------------------------------------- When an INLINE pragma is specified on a pattern, ghc-7.6.1 shows some internal trace messages.
{{{ module Foo where {-# INLINE widths #-} widths :: [Int] widthMonth, widthYear :: Int widths@[widthMonth, widthYear] = [1,2] }}} {{{ ~/Downloads$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.6.1 ~/Downloads$ ghc Foo.hs -O [1 of 1] Compiling Foo ( Foo.hs, Foo.o ) makeCorePair: arity missing widths{v aeJ} [lid] }}} I'm not certain that specifying an INLINE pragma in this context even makes sense, in which case perhaps a more useful warning could be produced. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7245> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs