• Jose A. Lopes's avatar
    Setup constant generation infrastructure · 1b2adaa6
    Jose A. Lopes authored
    Setup a transitional Haskell to Python constant generation
    infrastructure.  This infrastructure is transitional and Python
    constants will not be migrated to Haskell all at once.  Instead, some
    constants will be incrementally pulled from Python and moved to
    Haskell.  This is a list of the relevant modules in this
    infrastructure:
    
    * Ganeti.HsConstants: contains the Haskell constants that are used
      both in Haskell (once re-exported through Ganeti.Constants) and
      generated in Python
    
    * Ganety.Hs2Py.ListConstants: contains the list of Haskell constants
      to be generated in Python; these constants are defined in the
      previous module and the list is automatically generated by the
      Makefile
    
    * hs2py-constants: Haskell program that outputs the actual constant
      definitions in Python; this task cannot be performed by 'hs2py' just
      yet because this programs depends on the 'Constants' module. But
      once all the constants have migrated to Haskell, then
      'hs2py-constants' and 'hs2py' can be merged.
    Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    1b2adaa6
hs2py-constants.hs 888 Bytes