[Haskell-cafe] Obscure instances for Obscure types

Neil Mitchell ndmitchell at gmail.com
Thu Apr 26 18:03:25 EDT 2007


I currently maintain two libraries, TagSoup which defines the Tag data
type, and BinaryDefer, which defines the BinaryDefer class. If I
wanted to include an instance for BinaryDefer Tag, where would I put

Putting it in either library introduces an artificial dependency on
the other. Putting it in a separate libary makes the library about 4
lines long and is just annoying. Putting it in the individual
application(s) is exactly what libraries were designed to avoid.

Is there a solution?



More information about the Haskell-Cafe mailing list