diff options
author | Łukasz Hanuszczak <lukasz.hanuszczak@gmail.com> | 2015-08-21 19:51:24 +0200 |
---|---|---|
committer | Łukasz Hanuszczak <lukasz.hanuszczak@gmail.com> | 2015-08-22 23:40:28 +0200 |
commit | 2555cc37c9e9c0eeb9f7fbddb9599bb6fae3e982 (patch) | |
tree | 0e70ab803fc4a4ab5c7170b381ad96bb90873926 /html-test/Main.hs | |
parent | 391225eea26bb2484cbf49d0ca5964ab3176b974 (diff) |
Refactor existing code to use XHTML printer instead of XML one.
Diffstat (limited to 'html-test/Main.hs')
-rwxr-xr-x | html-test/Main.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html-test/Main.hs b/html-test/Main.hs index 724d35ec..3880fc3c 100755 --- a/html-test/Main.hs +++ b/html-test/Main.hs @@ -10,10 +10,10 @@ import Test.Haddock import Test.Haddock.Xhtml -checkConfig :: CheckConfig Xhtml +checkConfig :: CheckConfig Xml checkConfig = CheckConfig - { ccfgRead = \mdl input -> stripIfRequired mdl <$> parseXhtml input - , ccfgDump = dumpXhtml + { ccfgRead = \mdl input -> stripIfRequired mdl <$> parseXml input + , ccfgDump = dumpXml , ccfgEqual = (==) } @@ -32,7 +32,7 @@ main = do } -stripIfRequired :: String -> Xhtml -> Xhtml +stripIfRequired :: String -> Xml -> Xml stripIfRequired mdl = stripLinks' . stripFooter where |