logo       

[ ghc-Bugs-1019758 ] SPECIALIZE pragma and polymorphic instances: msg#00056

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-1019758 ] SPECIALIZE pragma and polymorphic instances

Bugs item #1019758, was opened at 2004-08-31 08:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1019758&group_id=8032

Category: Compiler
Group: 6.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: SPECIALIZE pragma and polymorphic instances

Initial Comment:
Given a polymorphic specialization like

f :: (Storable a, Eq a) => T a
{-# SPECIALIZE f :: T (Ptr a) #-}

GHC does not produce the requested polymorphic
specialization, but if we use f at the ground types T
(Ptr Foo) and T (Ptr Bar), we get a specialization for
each, and these are essentially the same.

ross@xxxxxxxxxxxxxx

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1019758&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise