Update dependencies
Merge branch 'master' of http://darcs.haskell.org/git-mirrors/Cabal/
Make sure we test valid C99 programs.

In particular, Clang is very fussy about not having this. It doesn't
really hurt anything, but it's better to suppress the annoying warning
properly.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Merge pull request #1376 from thoughtpolice/clang-tweak

Make sure we test valid C99 programs.
Slim down exception compatibility modules

handleIO and throwIOIO in the cabal-install compat module were
completely unused, so they're just binned.

IOException, SomeException and onException are now just used from
Control.Exception, since these days it's available on all supported
build configurations.

There are some more functions which can be removed, but these are the
easiest and least invasive.
Remove more exception compatibility code

This one removes Cabal's throwIOIO in favour of
Control.Exception.throwIO.

Note that throwIO is more polymorphic than throwIOIO, but in all current
use cases the same type is inferred anyway.
Merge pull request #1377 from benmachine/updated-nocompat

Removing some redundant exception compatibility code
Bump the dependency on 'unix'.

Fixes #1384.
Use System.Process instead of System.Cmd.

System.Cmd is deprecated in process-1.2.
Formatting.
Formatting.
Whitespace.
80-col violation.
Typo.
Add arguments EXTRA_BUILD_OPTS and EXTRA_INSTALL_OPTS.

Also add SCOPE_OF_INSTALLATION to 'setup install'.
Test suite: use regexes to match the compiler error message.

GHC >= 7.7 outputs Unicode quotation characters when possible (see
http://ghc.haskell.org/trac/ghc/ticket/2507 ), which breaks tests that rely on
substring matching.

Alternatively, we can run GHC with 'LC_ALL=C', but I'm not sure whether that'll
work on Windows.
Whitespace.
Add Functor/Applicative instances for ParseResult

ParseResult is a Monad, so it should also be a Functor and an Applicative.
Correct applicative instance
Functor/Applicative instance for types in ReadP.hs

This defines the following instances for the types in ReadP.hs:
  * Functor/Applicative for P
  * Appplicative for Parser