From 2aec8fdde55579b62f480c6b2a567bd5392fdff2 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Thu, 9 Jan 2014 00:11:35 +0000 Subject: Bump interface version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There were some breaking changes over the last few patches so we bump the interface version. This causes a big problem with testing: 1. To generate cross package docs, we first need to generate docs for the package used. 2. To generate package docs with new interface version, we need to use Haddock which has the version bumped. 3. To get Haddock with the version bump, we first need to test cross package docs 4. GOTO 1 So the problem is the chicken and the egg problem. It seems that the only solution would be to generate some interface files on the fly but it is non-trivial. To run this test, you'll have to: * build Haddock without the test (make sure everything else passes) * rebuild the packages used in the test with your shiny new binary making sure they are visible to Haddock * remove the ‘_hidden’ suffix and re-run the tests Note: because the packages currently used for this test are those provided by GHC, it's probably non-trivial to just re-build them. Preferably something less tedious to rebuild should be used and something that is not subject to change. --- html-test/src/CrossPackageDocs.hs | 4 ---- html-test/src/CrossPackageDocs.hs_hidden | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 html-test/src/CrossPackageDocs.hs create mode 100644 html-test/src/CrossPackageDocs.hs_hidden (limited to 'html-test') diff --git a/html-test/src/CrossPackageDocs.hs b/html-test/src/CrossPackageDocs.hs deleted file mode 100644 index 4d529f79..00000000 --- a/html-test/src/CrossPackageDocs.hs +++ /dev/null @@ -1,4 +0,0 @@ -module CrossPackageDocs (map, IsString(..), runInteractiveProcess) where - -import System.Process -import Data.String diff --git a/html-test/src/CrossPackageDocs.hs_hidden b/html-test/src/CrossPackageDocs.hs_hidden new file mode 100644 index 00000000..4d529f79 --- /dev/null +++ b/html-test/src/CrossPackageDocs.hs_hidden @@ -0,0 +1,4 @@ +module CrossPackageDocs (map, IsString(..), runInteractiveProcess) where + +import System.Process +import Data.String -- cgit v1.2.3