[Haskell-cafe] Problem on overlapping instances

Steffen Schuldenzucker sschuldenzucker at uni-bonn.de
Wed Jan 5 09:31:47 CET 2011


Am 05.01.2011 09:24, schrieb Magicloud Magiclouds:
> Hi,
>    I am using Data.Binary which defined "instance Binary a =>  Binary
> [a]". Now I need to define "instance Binary [String]" to make
> something special for string list.
>    How to make it work? I looked into the chapter of
> overlappinginstances, nothing works.

Just a guess: Have you enabled TypeSynonymInstances? (As String is a 
type synonym, at least this extension would be required)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110105/1e4917c1/attachment.htm>


More information about the Haskell-Cafe mailing list