Revert "Merge branch 'reverts'"

This reverts commit 5c93cc347773c7634321edd5f808d5b55b46301f, reversing
changes made to 5b81a9e53894d2ae591ca0c6c96199632d39eb06.

Conflicts:
	haddock-api/src/Haddock/Convert.hs
Changes due to ghc api changes in package representation

Also fix a bug with finding the package name and version given a
module. This had become wrong due to the package key changes (it was
very hacky in the first place). We now look up the package key in the
package db to get the package info properly.

Conflicts:
	haddock-api/src/Haddock.hs
Import Data.Word w/o import-list

This is needed to keep the compilation warning free (and thus pass GHC's
./validate) regardless of whether Word is re-exported from Prelude or not

See https://ghc.haskell.org/trac/ghc/ticket/9531 for more details
Follow changes to TypeAnnot in GHC HEAD

Signed-off-by: Austin Seipp <aseipp@pobox.com>

Conflicts:
	haddock-api/src/Haddock/Convert.hs
Bump ‘base’ constraint

Follows the similar commit made on ghc-head branch
Followup changes to addition of -fwarn-context-quantification (GHC Trac #4426)
Properly render package ID (not package key) in index, fixes #329.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>

Conflicts:
	haddock-api/src/Haddock/ModuleTree.hs
Disambiguate string-literals

GHC fails type-inference with `OverloadedStrings` + `Data.Foldable.elem`
otherwise.

Conflicts:
	haddock-library/src/Documentation/Haddock/Parser.hs
Add an .arcconfig file.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Add .arclint file.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Collapse user-defined section by default (re #335)

Conflicts:
	haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
reflect ForeignType constructore removal

Reviewers: austin

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D358
Remove overlapping pattern match

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Make compatible with `deepseq-1.4.0.0`

...by not relying on the default method implementation of `rnf`
Update Haddock to new pattern synonym type signature syntax

Conflicts:
	haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
	haddock-api/src/Haddock/Convert.hs
Follow changes from #9812

Conflicts:
	haddock-api/src/Haddock/Convert.hs
Changes to reflect refactoring in GHC as part of #7484
Follow API changes in D426

Signed-off-by: Austin Seipp <aseipp@pobox.com>

Conflicts:
	haddock-api/src/Haddock/Backends/LaTeX.hs
	haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
	haddock-api/src/Haddock/Convert.hs
Support for PartialTypeSignatures

Conflicts:
	haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
	haddock-api/src/Haddock/Convert.hs
	haddock-api/src/Haddock/Interface/Create.hs
For pattern synonyms, render "pattern" as a keyword