On Tue, Aug 27, 2013 at 8:52 AM, Jose A. Lopes <[email protected]> wrote: > From: "Jose A. Lopes" <[email protected]> > > This patch series introduces a transitional infrastructure for > generating Python constants from Haskell. This infrastructure > introduces several new Haskell modules that contain the constants on > the Haskell side, the constants to be generated to Python, and the > Template Haskell code for performing the generation. > > * move instances of PyValue to a separate module for reuse > * add Template Haskell for constant generation > * introduce the constant infrastructure > * update Python constants module to fetch value from the generated > code > * eliminate Haskell duplicated constants introduced by the > infrastructure > > Jose A. Lopes (6): > Move some 'PyValue' instances to a separate file > Add Template Haskell code for constant generation > Setup constant generation infrastructure > Update 'ADMINST_DOWN' reference to '_constants.py' > Rename 'Constants.hs' to 'PyConstants.hs' > Import original constants instead of generated >
As discussed in person, this is a good "intermediate state" with the following changes: - the list of constants filtered out from py to hs has to be read from the hs file, and not hardcoded - the "map of haskell constants to be generated" has to be also generated Thanks a lot for preparing this first draft! Guido
