[Haskell-cafe] Phantoms

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Aug 14 03:56:54 EDT 2008

Hello Andrew,

Monday, August 11, 2008, 8:32:46 PM, you wrote:

>>> Here's the thing though... How do I get it so that "Foo Int" and "Foo
>>> Double" produce slightly different strings when printed?
>> instnace Show (Foo Int) ...
>> instnace Show (Foo Double) ...

> ...WHY did I not think of this myself? o_O

because it's impossible with OOP classes? :)))

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list