[ ghc-Bugs-1019758 ] SPECIALIZE pragma and polymorphic instances
SourceForge.net
noreply at sourceforge.net
Tue Aug 31 11:14:06 EDT 2004
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 at soi.city.ac.uk
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1019758&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list