
#12632: Inline and Noinline pragmas ignored for instance functions -------------------------------------+------------------------------------- Reporter: jeremy-list | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect Unknown/Multiple | warning at compile-time Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- An example source file which triggers the incorrect behaviour follows. I am currently unclear whether the effected inline and noinline pragmas are actually ignored by the simplifier or whether the inline rule shadowing warning is fired incorrectly. {{{#!hs class A a where (>>#) :: a -> a -> a instance A (Maybe a) where {-# NOINLINE (>>#) #-} a >># b = undefined {-# RULES "example" forall (a :: Maybe Int) (b :: Maybe Int) . a >># b = Just 4 #-} }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12632 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler