Propose code for supporting haddock response files
Propose code for supporting haddock response files

This change is for adding the ehancement to support haddock
response files.  This is what was used to build HP 7.10.2
for Windows, but it does need a corresponding change in
haddock to utilize it. Hopefully, this and its corresponding
haddock change can make it into the next ghc release and
eliminate much gnashing of teeth, error prone, and time
consuming manual steps in the HP build process.

Modified:

* Cabal/Distribution/Simple/Haddock.hs
  * renderArgs function: I put a couple of things into locals
    since I needed another use for UTF8 support check, plus I
    added another check based on version; the temp file logic
    was just as the prologue case above but I did need to
    repeat the invocation of the 'k' function in order to
    keep the cases separate and allow proper handling of the
    temp file automatic (or not, per --keep-temp-files)
    deletion.  Important: the haddock version being check
    against for response file support, greater than 2.16.1,
    is a placeholder and may or may not be the actual value
    since that will depend on the as-yet-unreleased haddock
    (which looks like it may be >2.16.1 but at this moment is
    not released).

martinvlk/cabal,mmakowski/cabal,gbaz/cabal,gridaphobe/cabal,enolan/cabal,thomie/cabal,rimmington/cabal,kolmodin/cabal,garetxe/cabal,mightybyte/cabal,sopvop/cabal,gbaz/cabal,bennofs/cabal,headprogrammingczar/cabal,bennofs/cabal,sopvop/cabal,headprogrammingczar/cabal,gridaphobe/cabal,Peaker/cabal,lukexi/cabal,sopvop/cabal,ghc-android/cabal,thoughtpolice/cabal,trskop/cabal,Heather/cabal,enolan/cabal,thomie/cabal,garetxe/cabal,plow-technologies/cabal,mydaum/cabal,kolmodin/cabal,Peaker/cabal,edsko/cabal,eric-stanley/cabal,mightybyte/cabal,eric-stanley/cabal,randen/cabal,beni55/cabal,valderman/cabal,anton-dessiatov/cabal,x-y-z/cabal,x-y-z/cabal,themoritz/cabal,valderman/cabal,thoughtpolice/cabal,edsko/cabal,mydaum/cabal,randen/cabal,Heather/cabal,beni55/cabal,rimmington/cabal,plow-technologies/cabal,trskop/cabal,ghc-android/cabal,mmakowski/cabal,martinvlk/cabal,themoritz/cabal,anton-dessiatov/cabal,lukexi/cabal,themoritz/cabal