• Ömer Sinan Ağacan's avatar
    Minor refactoring in deriveConstants · 821bece9
    Ömer Sinan Ağacan authored
    Mainly we now generate this
    
        data PlatformConstants = PlatformConstants {
              pc_CONTROL_GROUP_CONST_291 :: Int,
              pc_STD_HDR_SIZE :: Int,
              pc_PROF_HDR_SIZE :: Int,
              pc_BLOCK_SIZE :: Int,
          }
    
    instead of
    
        data PlatformConstants = PlatformConstants {
            pc_platformConstants :: ()
            , pc_CONTROL_GROUP_CONST_291 :: Int
            , pc_STD_HDR_SIZE :: Int
            , pc_PROF_HDR_SIZE :: Int
            , pc_BLOCK_SIZE :: Int
            ...
          }
    
    The first field has no use and according to (removed) comments it was to
    make code generator's work easier.. if anything this version is simpler
    because it has less repetition (the commas in strings are gone).
    821bece9
Name
Last commit
Last update
..
check-api-annotations Loading commit data...
check-ppr Loading commit data...
checkUniques Loading commit data...
compare_sizes Loading commit data...
completion Loading commit data...
coverity Loading commit data...
deriveConstants Loading commit data...
describe-unexpected Loading commit data...
fs Loading commit data...
gen-dll Loading commit data...
genapply Loading commit data...
genprimopcode Loading commit data...
ghc-cabal Loading commit data...
ghc-in-ghci Loading commit data...
ghc-pkg Loading commit data...
ghctags Loading commit data...
haddock @ 75f71980 Loading commit data...
hp2ps Loading commit data...
hpc Loading commit data...
hsc2hs @ efb556cc Loading commit data...
iserv Loading commit data...
iserv-proxy Loading commit data...
llvm-targets Loading commit data...
lndir Loading commit data...
mkdirhier Loading commit data...
remote-iserv Loading commit data...
runghc Loading commit data...
testremove Loading commit data...
touchy Loading commit data...
unlit Loading commit data...
vagrant Loading commit data...
verify-release Loading commit data...
update-autoconf.sh Loading commit data...