1. 29 Aug, 2013 1 commit
    • 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
  2. 05 Mar, 2013 1 commit
  3. 24 Dec, 2012 1 commit
  4. 24 Aug, 2012 1 commit
  5. 24 May, 2011 1 commit
    • Iustin Pop's avatar
      Implement conversion of Python constants to Haskell · d99d1e36
      Iustin Pop authored
      
      
      With the merge of the repositories, we can now auto-generate the code
      for Haskell constants from the Python code.
      
      Currently this only handles the basic types (strings and
      integers). Handling containers such as lists and dictionaries is only
      possible if we would use a parser such that we recognise the element
      names. We could extend the convert-constants script if that becomes
      necessary, right now I'm looking at just the simple constants such as
      Iallocator modes, instance states, etc.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      d99d1e36