
7 Jun
2009
7 Jun
'09
8:36 p.m.
Ryan Ingram schrieb:
From what I understand, the current best practices are to build your package dependencies like so:
Parsec MyMonadT MyMonadT_Parsec -- orphan instances go here ProjectPackage
This does mean splitting up your project into three packages, but decouples the orphan instance into its own package where it can do the least damage :)
+1 You may also document in MyMonadT where the official orphan instance can be found (in MyMonadT_Parsec) and that no other instance should be defined.