
3 Jun
2009
3 Jun
'09
3:33 a.m.
wren ng thornton wrote:
Yeah, orphan instances are bad.
Why? I already use private orphan modules within the package, though the package does not externally expose any orphan instances.
I'm with Edward Kmett here, for the time package, having compiler-dependent instances seems like the least evil. (For other packages, it depends on the classes and on how easy it would be to avoid the problem.)
The downside is that the package has to know, and fossilize, information about compilers. Though I will go this way if orphan instances are shown to be sufficiently problematic. -- Ashley