So I am moving constants from Python to Haskell. In this patch series,
I focused on the constants concerning the daemons, for example,
'rapiUser' and 'confdUser'.  These are currently being used by
Haskell, for example, in 'src/Ganeti/Runtime.hs'.  Guido also
suggested that I should try to move groups of constants instead of one
constant at a time. So decided to move all the constants concerning
daemons from Python to Haskell.

This patch series will not change how these constants are used in
Haskell. It will simply make Haskell genenerate them in Python. These
constants, however, depend on values from 'configure'. Therefore, I
had to mimic the structure of generating an 'autoconf' file on the
Haskell side, which is the strategy we currently follow in
Python. Therefore, the first step in this patch series is to generate
an 'AutoConf.hs' on the Haskell side. Then, when the constants are
introduced in the 3rd patch (if I recall correctly), such as,
'rapiUser', they will take their values from the generated
'AutoConf.hs'.

If I missed anything please let me know.

Thanks,
Jose

Reply via email to