aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhtml-test/Main.hs3
-rw-r--r--hypsrc-test/Main.hs3
2 files changed, 4 insertions, 2 deletions
diff --git a/html-test/Main.hs b/html-test/Main.hs
index 02a86d43..67dbeec6 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 01cc5429..d3ab79a8 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