Don't pretty-print unparseable test suite types.

Issue #1202. The pretty printer was printing 'type: -' for empty test
suite interfaces.  The empty test interface type is the result of
parsing a branch in a conditional block where no type is explicitly
specified (i.e., the type is inherited from a higher level or propagated
up from a lower one).  Therefore, the pretty-printer should not print
any 'type' field at all for test suites with an empty test interface
type.
Merge branch 'parse-pp-ident-1202' of https://github.com/ttuegel/cabal
Add pretty-printing of benchmarks
Don't initialise cabal.sandbox.config from ~/.cabal/config.

Reverts fada98e2d0d2fdda36476befdf4e9176f3e40dc7.
Refactoring.

Remove the confusing 'basePkgEnv' function, make loading the inherited package
environment more explicit.
Rename 'userPkgEnv' to 'userPackageEnvironment'.
Make 'createPackageEnvironment' return '()'.

Removes a bit of duplication.
Cosmetic change.
Makes sandboxes inherit from '~/.cabal/config'.

Previously that file was copied at sandbox creation time. Fixes #1123.
Small code reorg.

No functionality changes.
Don't show an uninformative message by default.
Merge pull request #1217 from 23Skidoo/sandbox-config

Make sandbox configs inherit from '~/.cabal/config'.
Add iOS as an OS.
adding the field "hs-source-dirs:"  to the set of commented default fields included in a .cabal file generated by "cabal init"

Signed-off-by: Carter Tazio Schonwald <carter.schonwald@gmail.com>
Return Maybe Platform as part of compiler configure, and place it in LocalBuildInfo as hostPlatform.
GHC infers the platform form ghc --info using new 'platformFromTriple' function. Other compilers return Nothing, which triggers fallback to old behavior of using buildPlatform. hostPlatform is then threaded through to initialPathTemplateEnv.
Adds $arch-$os-$compiler to libsubdir, datasubdir and docdir by default as suggested in https://github.com/haskell/cabal/pull/1214
Merge pull request #1224 from cartazio/master

include "hs-source-dirs: " field in generated cabal files
Closes #1222.
Merge support for cross-compiling
Add mask, mask_ to Distribution.Compat.Exception

This fixes the build on GHC 6.12.3 and also makes -j work there.
Whitespace, 80-col violations.