On 23/11/2009 17:23, Simon Peyton-Jones wrote:
Ian, or anyone else: re #2467, I can see the following orphan instances in 
libraries (below).

Do you think they are all necessary?

Thanks

Simon

No instances in GHC.IO any more, so I'll remove the -fno-warn:

libraries/base/GHC/IO.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}

This one is necessary.  All the package does is define orphan instances!

> libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs:{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-name-shadowing #-}

Not sure about the rest.

libraries/base/Control/Monad/Instances.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/base/Control/Monad/ST.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/base/Control/Exception/Base.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/base/Data/Tuple.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/base/GHC/Base.lhs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/base/GHC/Float.lhs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/base/GHC/Num.lhs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/base/Text/Show/Functions.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}
libraries/Cabal/tests/Test/Distribution/Version.hs:{-# OPTIONS_GHC 
-fno-warn-orphans -fno-warn-incomplete-patterns #-}
libraries/mtl/Control/Monad/Error.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}      
    -- Temporary, I hope.  SLPJ Aug08
libraries/mtl/Control/Monad/Reader.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}     
    -- Temporary, I hope.  SLPJ Aug08
libraries/syb/Data/Generics/Instances.hs:{-# OPTIONS_GHC -fno-warn-orphans #-}


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of GHC
Sent: 23 November 2009 08:57
Cc: [email protected]
Subject: Re: [GHC] #2467: orphan instance warnings are badly behaved

#2467: orphan instance warnings are badly behaved
---------------------------+------------------------------------------------
   Reporter:  duncan        |          Owner:
       Type:  bug           |         Status:  new
   Priority:  normal        |      Milestone:  6.14.1
  Component:  Compiler      |        Version:  6.8.2
Resolution:                |       Keywords:
Difficulty:  Unknown       |             Os:  Unknown/Multiple
   Testcase:                |   Architecture:  Unknown/Multiple
    Failure:  None/Unknown  |
---------------------------+------------------------------------------------
Comment (by simonpj):

  There seem to be two things going on in this ticket.

   1. Do the instances in `mtl` and `array` have to include orphan
  instances?  We should investigate and fix or punt.

   2. Some reflections on orphan instances in general.  Here the discussion
  is inconclusive, so we should probably milestone as _|_, leaving the
  ticket open so that we don't lose the thoughts.

  Simon




_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to