[Haskell-cafe] Monad transformer responsibilities
Henning Thielemann
lemming at henning-thielemann.de
Sun Jun 7 16:36:25 EDT 2009
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.
More information about the Haskell-Cafe
mailing list