aboutsummaryrefslogtreecommitdiff
path: root/hoogle-test/Main.hs
blob: 9da20c364e6c02052878ef15e3167340a11b9ae1 (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
{-# LANGUAGE CPP #-}


import System.Environment
import System.FilePath

import Test.Haddock


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


dirConfig :: DirConfig
dirConfig = defaultDirConfig $ takeDirectory __FILE__


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