#4444: SPECIALISE pragma rejected; regression
---------------------------------+------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: new
Priority: highest | Milestone: 7.0.1
Component: Compiler | Version: 7.0.1 RC1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Compiling this module:
{{{
module Q where
{-# SPECIALIZE f :: (Bool -> Bool) -> Int #-}
f :: (a -> Bool) -> Int
f = undefined
}}}
fails with:
{{{
$ ghc -c Q.hs
Q.hs:3:1:
Discarding pragma for non-overloaded function `f'
In the SPECIALISE pragma
{-# SPECIALIZE f :: (Bool -> Bool) -> Int #-}
}}}
This is causing build failures for Munkres, bitarray and bitmap.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4444>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs