diff options
Diffstat (limited to 'html-test/Main.hs')
-rwxr-xr-x | html-test/Main.hs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/html-test/Main.hs b/html-test/Main.hs index 8d1b40a8..49e769f5 100755 --- a/html-test/Main.hs +++ b/html-test/Main.hs @@ -1,6 +1,8 @@ {-# LANGUAGE CPP #-} +import Data.Char + import System.Environment import System.FilePath @@ -17,7 +19,9 @@ checkConfig = CheckConfig dirConfig :: DirConfig -dirConfig = defaultDirConfig $ takeDirectory __FILE__ +dirConfig = (defaultDirConfig $ takeDirectory __FILE__) + { dcfgCheckIgnore = checkIgnore + } main :: IO () @@ -36,3 +40,8 @@ stripIfRequired mdl = -- | List of modules in which we don't 'stripLinks' preserveLinksModules :: [String] preserveLinksModules = ["Bug253"] + + +checkIgnore :: FilePath -> Bool +checkIgnore file@(c:_) | takeExtension file == ".html" && isUpper c = False +checkIgnore _ = True |