Skip to content
  • Iustin Pop's avatar
    Improve convert-constants to handle dictionaries · 8751c041
    Iustin Pop authored
    
    
    The two main drawbacks for convert-constants are the fact that it
    can't handle sets/frozensets (mainly due to the fact that I don't know
    how useful this would be to the Haskell code) and that it cannot
    export dictionaries.
    
    To fix the second case, the current patch changes the code to support
    flattening (potentially nested) dictionaries into single name
    space. Yes, this could generate conflicts, but they will be detected
    at compile time.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
    8751c041