|
Subject: Re: The base library and GHC 6.10 Newsgroups: gmane.comp.lang.haskell.libraries Date: 2008-08-31 22:02:59 GMT (43 weeks, 5 days, 20 hours and 52 minutes ago)
Leaving Data.Generics.Basics in base while moving
Data.Generics.Instances to syb raises the interesting issue of
dealing with the accidental re-exports of Data.Generics.Instances
from various places. Here is that list again (*):
$ find . -name '*hs' | grep -v _darcs | xargs grep -l 'Data.Generics' | grep -v Generics
./array/Data/Array.hs
./base/Data/Typeable.hs
./bytestring/Data/ByteString/Internal.hs
./bytestring/Data/ByteString/Lazy/Internal.hs
./bytestring/Data/ByteString/Unsafe.hs
./containers/Data/IntMap.hs
./containers/Data/IntSet.hs
./containers/Data/Map.hs
./containers/Data/Sequence.hs
./containers/Data/Set.hs
./containers/Data/Tree.hs
./haskell-src/Language/Haskell/Syntax.hs
./network/Network/URI.hs
./packedstring/Data/PackedString.hs
./template-haskell/Language/Haskell/TH/Quote.hs
./template-haskell/Language/Haskell/TH/Syntax.hs
And here is a brief scan of what each of these is doing. References
to 'standard' vs 'dubious' Data instances are wrt the suggested split
in [1], with some possible refinements:
- array: the Data instance for Array could be moved into array,
avoiding the need for instance imports and syb dependency?
- bytestring: uses deriving, which for Internal.hs depends on
Data instances for Int [standard] and (ForeignPtr Word8)
[dubious]; would need to depend on syb; and import both
standard and dubious instances
|
|
|