Ticket #4444 (closed bug: fixed)
SPECIALISE pragma rejected; regression
| Reported by: | igloo | Owned by: | simonpj |
|---|---|---|---|
| Priority: | highest | Milestone: | 7.0.1 |
| Component: | Compiler | Version: | 7.0.1 RC1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | T4444 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
