[commit: haddock] 2.17.3.1-spanfix, alexbiehl-patch-1, ghc-8.0, ghc-8.0-facebook, ghc-head, ghc-head1, haddock-quick, headdock-library-1.4.5, ie_avails, issue-303, master, pr-filter-maps, pr/cabal-desc, travis, v2.17, v2.17.3, v2.18, wip-located-module-as, wip/D2418, wip/T12105, wip/T12105-2, wip/T12942, wip/T13163, wip/T3384, wip/embelleshed-rdr, wip/new-tree-one-param, wip/rae, wip/remove-frames, wip/remove-frames1, wip/revert-ttg-2017-11-20, wip/ttg-2017-10-13, wip/ttg-2017-10-31, wip/ttg-2017-11-06, wip/ttg2-2017-11-10, wip/ttg3-2017-11-12, wip/ttg4-constraints-2017-11-13: test: Compare on dump (60b4f39)

git at git.haskell.org git at git.haskell.org
Mon Nov 20 21:00:12 UTC 2017


Repository : ssh://git@git.haskell.org/haddock

On branches: 2.17.3.1-spanfix,alexbiehl-patch-1,ghc-8.0,ghc-8.0-facebook,ghc-head,ghc-head1,haddock-quick,headdock-library-1.4.5,ie_avails,issue-303,master,pr-filter-maps,pr/cabal-desc,travis,v2.17,v2.17.3,v2.18,wip-located-module-as,wip/D2418,wip/T12105,wip/T12105-2,wip/T12942,wip/T13163,wip/T3384,wip/embelleshed-rdr,wip/new-tree-one-param,wip/rae,wip/remove-frames,wip/remove-frames1,wip/revert-ttg-2017-11-20,wip/ttg-2017-10-13,wip/ttg-2017-10-31,wip/ttg-2017-11-06,wip/ttg2-2017-11-10,wip/ttg3-2017-11-12,wip/ttg4-constraints-2017-11-13
Link       : http://git.haskell.org/haddock.git/commitdiff/60b4f394bcd27a097f1a97d460cddc27ead59ba7

>---------------------------------------------------------------

commit 60b4f394bcd27a097f1a97d460cddc27ead59ba7
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Feb 8 15:09:21 2016 +0100

    test: Compare on dump
    
    For reasons I don't understand the Xml representations differ despite
    their textual representations being identical.


>---------------------------------------------------------------

60b4f394bcd27a097f1a97d460cddc27ead59ba7
 html-test/Main.hs   | 3 ++-
 hypsrc-test/Main.hs | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/html-test/Main.hs b/html-test/Main.hs
index 02a86d4..67dbeec 100755
--- a/html-test/Main.hs
+++ b/html-test/Main.hs
@@ -2,6 +2,7 @@
 
 
 import Data.Char
+import Data.Function (on)
 
 import System.Environment
 import System.FilePath
@@ -15,7 +16,7 @@ checkConfig = CheckConfig
     { ccfgRead = parseXml
     , ccfgClean = stripIfRequired
     , ccfgDump = dumpXml
-    , ccfgEqual = (==)
+    , ccfgEqual = (==) `on` dumpXml
     }
 
 
diff --git a/hypsrc-test/Main.hs b/hypsrc-test/Main.hs
index 01cc542..d3ab79a 100644
--- a/hypsrc-test/Main.hs
+++ b/hypsrc-test/Main.hs
@@ -3,6 +3,7 @@
 
 import Data.Char
 import Data.List
+import Data.Function (on)
 
 import System.Environment
 import System.FilePath
@@ -16,7 +17,7 @@ checkConfig = CheckConfig
     { ccfgRead = parseXml
     , ccfgClean = \_ -> strip
     , ccfgDump = dumpXml
-    , ccfgEqual = (==)
+    , ccfgEqual = (==) `on` dumpXml
     }
   where
     strip = stripAnchors' . stripLinks' . stripFooter



More information about the ghc-commits mailing list