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.