« Previous | Next » 

Revision 1b2adaa6

ID1b2adaa67411daf827d91f5169e859a1571200b8
Parent fec1fac1
Child acf9af53

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences