cvs commit: fptools/ghc/compiler/prelude PrelNames.lhs
fptools/libraries/base Makefile fptools/libraries/base/Control
Exception.hs fptools/libraries/base/Data Typeable.hs Types.hs Array.hs
Complex.hs Dynamic.hs Generics.hs PackedString.hs STRef.hs ...
ralf@glass.cse.ogi.edu
ralf@glass.cse.ogi.edu
Thu, 24 Jul 2003 05:20:00 -0700
Modified files:
ghc/compiler/prelude PrelNames.lhs
libraries/base Makefile
libraries/base/Control Exception.hs
libraries/base/Data Array.hs Complex.hs Dynamic.hs
Generics.hs PackedString.hs STRef.hs
libraries/base/Data/Array Base.hs
libraries/base/Foreign ForeignPtr.hs
libraries/base/Foreign/C Types.hs TypesISO.hs
libraries/base/GHC ForeignPtr.hs
libraries/base/System/Mem StableName.hs Weak.hs
libraries/base/System/Posix Types.hs
Added files:
libraries/base/Data Typeable.hs Types.hs
libraries/base/Data/Generics Aliases.hs Basics.hs Counts.hs
Schemes.hs Shortcuts.hs
Strings.hs Twins.hs Types.hs
libraries/base/include Typeable.h
Removed files:
libraries/base/include Dynamic.h
Log:
Major refactoring of Data/Generics.
This also affects the compiler (because of deriving issues).
This is an intermediate commit.
The library is supposed to compile fine.
But the deriving stuff for Data needs to be revised.
The testsuite for Data/Generics will not pass.
gread is broken at the moment.
So it is strongly recommended not to cvs upd for a few hours or a day.
Detailed description of changes:
- Split up Data/Dynamic into Data/Typeable and Data/Dynamic.
(This makes clear what part is about TypeReps and cast vs.
dynamics. The latter is not needed by Data/Generics.)
- Renamed Data/include/Dynamic.h -> Typeable.h to end confusion.
- Split up Data/Generics.hs in a set of modules.
- Revised class Data:
- Got rid of gunfold but added fromConstr as more primtive one
- Revised representations of constructors
- Revised treatment of primitive types
- Revised type of gmapQ; preserved old gmapQ as gmapL
- Added a module Data/Types.hs for treatment of types as values.
This is going somewhere.
Revision Changes Path
1.78 +5 -5 fptools/ghc/compiler/prelude/PrelNames.lhs
1.45 +2 -1 fptools/libraries/base/Makefile
1.26 +1 -1 fptools/libraries/base/Control/Exception.hs
1.8 +1 -1 fptools/libraries/base/Data/Array.hs
1.8 +1 -1 fptools/libraries/base/Data/Complex.hs
1.23 +12 -336 fptools/libraries/base/Data/Dynamic.hs
1.16 +18 -917 fptools/libraries/base/Data/Generics.hs
1.16 +1 -1 fptools/libraries/base/Data/PackedString.hs
1.11 +1 -1 fptools/libraries/base/Data/STRef.hs
1.16 +1 -1 fptools/libraries/base/Data/Array/Base.hs
1.25 +1 -1 fptools/libraries/base/Foreign/ForeignPtr.hs
1.17 +1 -1 fptools/libraries/base/Foreign/C/Types.hs
1.14 +1 -1 fptools/libraries/base/Foreign/C/TypesISO.hs
1.6 +1 -1 fptools/libraries/base/GHC/ForeignPtr.hs
1.9 +1 -1 fptools/libraries/base/System/Mem/StableName.hs
1.9 +1 -1 fptools/libraries/base/System/Mem/Weak.hs
1.10 +1 -1 fptools/libraries/base/System/Posix/Types.hs