aboutsummaryrefslogblamecommitdiff
path: root/latex-test/Main.hs
blob: 5989410ba6ee4cfc22af9e6d157cb83b73716c8d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11









                                 
                          













                                                            
{-# LANGUAGE CPP #-}


import System.Environment
import System.FilePath

import Test.Haddock


checkConfig :: CheckConfig String
checkConfig = CheckConfig
    { ccfgRead = Just
    , ccfgClean = \_ -> id
    , ccfgDump = id
    , ccfgEqual = (==)
    }


dirConfig :: DirConfig
dirConfig = defaultDirConfig $ takeDirectory __FILE__


main :: IO ()
main = do
    cfg <- parseArgs checkConfig dirConfig =<< getArgs
    runAndCheck $ cfg
        { cfgHaddockArgs = cfgHaddockArgs cfg ++ ["--latex"]
        }