Re: Overlapping instances vs. Haskell98 Report [was: How to disable warning for "export item 'module ...' exports nothing"?]

2008-08-15 Thread Isaac Dupree
Sean Leather wrote: That's interesting. So, maybe there should be some language extension or warning (with associated -fno-warn) for this in GHC. Personally, I prefer the way it's done now. (I guess that's obvious, considering I'm developing a library that will take advantage of it. ;) ) But it

Overlapping instances vs. Haskell98 Report [was: How to disable warning for "export item 'module ...' exports nothing"?]

2008-08-15 Thread Sean Leather
Ross Paterson wrote: > On Fri, Aug 15, 2008 at 04:17:44PM +0200, Sean Leather wrote: > > module A where > > class A t where > > a :: t > > > > module B where > > import A > > instance A Int where > > a = 0 > > a0 :: Int > > a0 = a > > > > module C where > > import A > > instance A Int where >