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.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to