blob: 22a06ba3908e007fa6029cbad7980654af930559 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{-# LANGUAGE CPP #-}
import System.Environment
import System.FilePath
import Test.Haddock
import Test.Haddock.Xhtml
import qualified Text.XML.Light as Xml
checkConfig :: CheckConfig Xml.Element
checkConfig = CheckConfig
{ ccfgRead = \_ input -> strip <$> Xml.parseXMLDoc input
, ccfgDump = Xml.ppElement
, ccfgEqual = (==)
}
dirConfig :: DirConfig
dirConfig = defaultDirConfig $ takeDirectory __FILE__
main :: IO ()
main = do
cfg <- uncurry (loadConfig checkConfig dirConfig) =<< checkOpt =<< getArgs
runHaddock cfg
checkFiles cfg
-- *** OLD TEST RUNNER UTILITY FUNCTIONS ***
-- These are considered bad and should be replaced as soon as possible.
-- | List of modules in which we don't 'stripLinks'
preserveLinksModules :: [String]
preserveLinksModules = ["Bug253"]
|