summaryrefslogtreecommitdiff
path: root/src/haddock
diff options
context:
space:
mode:
authorpeb <unknown>2005-08-08 08:01:10 +0000
committerpeb <unknown>2005-08-08 08:01:10 +0000
commit1351c101337e46a89c066f0830ed6f06fc96cf7a (patch)
treec2a07b6182345a72cf8cea2125972630044fdf46 /src/haddock
parentb03a738c4433f40c1eca2691fe09ea31d71475fe (diff)
"Committed_by_peb"
Diffstat (limited to 'src/haddock')
-rw-r--r--src/haddock/haddock-check.perl13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/haddock/haddock-check.perl b/src/haddock/haddock-check.perl
index a16eac9ef..93647bac7 100644
--- a/src/haddock/haddock-check.perl
+++ b/src/haddock/haddock-check.perl
@@ -41,10 +41,11 @@ sub check_headerline {
if ($#ARGV >= 0) {
@FILES = @ARGV;
} else {
- @dirs = qw{. api canonical cf cfgm compile for-ghc-nofud
- grammar infra notrace parsers shell
- source speech translate useGrammar util visualization
- GF GF/* GF/*/* GF/*/*/*};
+# @dirs = qw{. api canonical cf cfgm compile for-ghc-nofud
+# grammar infra notrace parsers shell
+# source speech translate useGrammar util visualization
+# GF GF/* GF/*/* GF/*/*/*};
+ @dirs = qw{GF GF/* GF/*/* GF/*/*/*};
@FILES = grep(!/\/(Par|Lex)(GF|GFC|CFG)\.hs$/,
glob "{".join(",",@dirs)."}/*.hs");
}
@@ -70,7 +71,9 @@ for $file (@FILES) {
# the module header
$hdr_module = $module = "";
- s/^ (--+ \s* \n) +//sx;
+ s/^ \{-\# \s+ OPTIONS \s+ -cpp \s+ \#-\} //sx; # removing ghc options (cpp)
+ s/^ \s+ //sx; # removing initial whitespace
+ s/^ (--+ \s* \n) +//sx; # removing initial comment lines
unless (s/^ -- \s \| \s* \n//sx) {
push @ERR, "Incorrect module header";
} else {