[Haskell-cafe] Obscure instances for Obscure types
westondan at imageworks.com
Thu Apr 26 19:33:08 EDT 2007
Taking a lesson from relational databases, I'd put it in 5-normal form:
a separate module importing its two dependencies.
Don't forget the 2nd law of thermodynamics: no 4-line file will stay 4
lines long after repeated code iterations. You might as well plan for
If it's too annoying to wait for that inevitability, try commenting the
hell out of it until it has a respectable number of lines.
Neil Mitchell wrote:
> 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?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe