[Haskell-cafe] Phantoms

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Aug 14 05:14:50 EDT 2008


Andrew Coppin <andrewcoppin at btinternet.com> wrote:

> > instnace Show (Foo Int) ...
> > instnace Show (Foo Double) ...
> >   
> 
> ...WHY did I not think of this myself? o_O

Because it is not Haskell'98?  
It requires {-# LANGUAGE OverlappingInstances #-}

Regards,
    Malcolm


More information about the Haskell-Cafe mailing list