Avoiding the hazards of orphan instances without dependency problems

Stephen Paul Weber singpolyma at singpolyma.net
Tue Oct 21 15:52:27 UTC 2014


Somebody claiming to be John Lato wrote:
>Thinking about this, I came to a slightly different scheme.  What if we
>instead add a pragma:
>
>{-# OrphanModule ClassName ModuleName #-}

I really like this.  It solve all the real orphan instance cases I've had in 
my libraries.

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20141021/7c136753/attachment.sig>


More information about the ghc-devs mailing list