« Previous | Next » 

Revision 1b2adaa6


Added by Jose A. Lopes almost 11 years ago

Setup constant generation infrastructure

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

  • 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
  • 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: Jose A. Lopes <>
Reviewed-by: Guido Trotter <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences