[Haskell-cafe] unlifted types in classes

Phyx lonetiger at gmail.com
Sat Apr 10 13:14:55 EDT 2010


Hi all,

I was wondering if it's possible to have a class declaration that would
except both unlifted types and lifted types as instances.

 

For instance, I'm looking for something like

 

class Foo a b where

    bar :: a -> b

 

instance Foo Int Int where

     bar = id

 

instance Foo Int# Int where

     bar = iBox

 

Regards,

Phyx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100410/ccea5a6e/attachment.html


More information about the Haskell-Cafe mailing list