[Haskell-cafe] ANNOUNCE: vector-bytestring-

Bas van Dijk v.dijk.bas at gmail.com
Sun Oct 16 00:56:32 CEST 2011

On 15 October 2011 23:17, Ertugrul Soeylemez <es at ertes.de> wrote:
> Both instances are valid here, and there is no mechanism to choose one of them.

There is: OverlappingInstances[1] chooses the most specific instance.
So in case someVector :: Vector Word8 the instance Show (Vector Word8)
is chosen because it's the most specific.


[1] http://www.haskell.org/ghc/docs/latest/html/users_guide/type-class-extensions.html#instance-overlap

More information about the Haskell-Cafe mailing list