diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-02-12 10:04:22 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-02-12 10:04:22 +0100 |
commit | e18d166b39cdc8c6672b626b4b840c1c383a9685 (patch) | |
tree | 43aa1526b9980fdf9f6fc8cbd5a6027b9e82970c /hypsrc-test/Main.hs | |
parent | 57a5dcfd3d2a7e01229a2c3a79b1f99cd95d5de1 (diff) | |
parent | 6a6029f1fc7b2cfeea8e231c8806d293d6644004 (diff) |
Merge remote-tracking branch 'origin/master' into ghc-head
Diffstat (limited to 'hypsrc-test/Main.hs')
-rw-r--r-- | hypsrc-test/Main.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hypsrc-test/Main.hs b/hypsrc-test/Main.hs index 0490be47..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 @@ -13,9 +14,10 @@ import Test.Haddock.Xhtml checkConfig :: CheckConfig Xml checkConfig = CheckConfig - { ccfgRead = \_ input -> strip <$> parseXml input + { ccfgRead = parseXml + , ccfgClean = \_ -> strip , ccfgDump = dumpXml - , ccfgEqual = (==) + , ccfgEqual = (==) `on` dumpXml } where strip = stripAnchors' . stripLinks' . stripFooter |