[Haskell-cafe] Phantoms

Andrew Coppin andrewcoppin at btinternet.com
Mon Aug 11 12:32:46 EDT 2008


Bulat Ziganshin wrote:
> Hello Andrew,
>
> Wednesday, August 6, 2008, 10:09:43 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



More information about the Haskell-Cafe mailing list