[add Options section describing flags to the manual
John Meacham <john@repetae.net>**20080221213256] hunk ./FlagDump.flags 1
-# dump-flags
+{-@Options
+
+# Dumping Debugging Information
+
+You can have jhc print out a variety of things while running as Controlled by
+the '-d' flag. The following is a list of possible parameters you can pass to
+'-d'.
hunk ./FlagDump.flags 45
-core-beforelift show core before lambdalifting
+core-beforelift show core before lambda lifting
hunk ./FlagOpts.flags 1
-# -f code options
+{-@Options
+
+# Code Options
+
+Various options affecting how jhc interprets and compiles code can be
+controlled with the '-f' flag, the following options are availible, you can
+negate any particular one by prepending 'no-' to it.
+
hunk ./FlagOpts.flags 14
+cpp pass haskell source through c preprocessor
+m4 pass haskell source through m4 preprocessor
hunk ./FlagOpts.flags 18
-boxy use the new boxy typechecker
hunk ./FlagOpts.flags 20
-cpp pass haskell source through cpp
-m4 pass haskell source through m4
hunk ./FlagOpts.flags 31
-eval-optimize perform eval-apply analysis and optimization
hunk ./FlagOpts.flags 44
-@fast no-eval-optimize no-global-optimize
-
hunk ./Makefile.am 126
+%.mkd: %.flags  utils/opt_sets.prl
+	perl $(srcdir)/utils/opt_sets.prl -f f -m -n $< $<  > $@
+
hunk ./Makefile.am 234
-manual: utils/stitch.prl
+manual: utils/stitch.prl FlagDump.mkd FlagOpts.mkd
hunk ./Makefile.am 237
+manual.html : manual
+	pandoc manual.mkd -s -f markdown -t html -s -c wiki.css -o $@
+
hunk ./utils/opt_sets.prl 9
-my %h;
-getopts("n:",\%h);
+my %opt;
+getopts("n:mf:",\%opt);
hunk ./utils/opt_sets.prl 12
-die "no name" unless $h{n};
-my $name = $h{n};
+die "no name" unless $opt{n};
+my $name = $opt{n};
hunk ./utils/opt_sets.prl 17
-undef %h;
+my %h;
hunk ./utils/opt_sets.prl 24
-while (<>) {
+my @lines = (<>);
+
+if($opt{m}) {
+    while($_ = shift @lines) {
+        unshift(@lines, $_),last if /^\!/;
+        print $_;
+    }
+}
+
+while($_ = shift @lines) {
hunk ./utils/opt_sets.prl 55
+if($opt{m}) {
+
+    foreach (@cat) {
+        print "\n## $_\n\n";
+        foreach my $j (sort @{$cat{$_}}) {
+            print "$h{$j}{oname}\n: $h{$j}{desc}\n\n";
+        }
+    }
+    exit;
+}
hunk ./utils/stitch.prl 8
+    Options