1. 25 Sep, 2013 2 commits
  2. 23 Sep, 2013 2 commits
  3. 20 Sep, 2013 2 commits
  4. 19 Sep, 2013 7 commits
  5. 18 Sep, 2013 1 commit
  6. 17 Sep, 2013 1 commit
  7. 12 Sep, 2013 4 commits
  8. 11 Sep, 2013 4 commits
  9. 10 Sep, 2013 2 commits
  10. 30 Aug, 2013 1 commit
  11. 29 Aug, 2013 4 commits
    • 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
    • Jose A. Lopes's avatar
      Rename 'Constants.hs' to 'PyConstants.hs' · fec1fac1
      Jose A. Lopes authored
      
      
      Rename the generated 'Constants.hs' module, which contains the Haskell
      constants generated from Python, to 'PyConstants.hs' in order to
      eliminate duplicated constants in Haskell, a problem introduced by the
      Haskell to Python constant generation, and to circumvent a problem
      with import/export of Haskell modules.  Add a new module named
      'Constants.hs' which imports 'PyConstants.hs' and exports its names.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      fec1fac1
    • Jose A. Lopes's avatar
      Add Template Haskell code for constant generation · d34c79b6
      Jose A. Lopes authored
      
      
      Add Template Haskell functions that generate a list in Haskell
      containing all the constants to be generated in Python.  This list is
      an association list mapping the constant name to its Python value,
      which is stored as a string.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      d34c79b6
    • Jose A. Lopes's avatar
      Move some 'PyValue' instances to a separate file · c4d68e39
      Jose A. Lopes authored
      
      
      Move some 'PyValue' instances to a separate file so they can be
      available to other modules which need these instances but do not want
      to depend on the constants module, which led to compilation
      constraints.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      c4d68e39
  12. 28 Aug, 2013 1 commit
  13. 27 Aug, 2013 3 commits
  14. 22 Aug, 2013 3 commits
  15. 21 Aug, 2013 1 commit
  16. 20 Aug, 2013 1 commit
  17. 14 Aug, 2013 1 commit