[commit: haddock] master: Add command line option for generating hyperlinked source. (ce4b560)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:40:42 UTC 2015


Repository : ssh://git@git.haskell.org/haddock

On branch  : master
Link       : http://git.haskell.org/haddock.git/commitdiff/ce4b5607f84506e5aafd1994e02300c2e3ee475d

>---------------------------------------------------------------

commit ce4b5607f84506e5aafd1994e02300c2e3ee475d
Author: Łukasz Hanuszczak <lukasz.hanuszczak at gmail.com>
Date:   Mon Jun 22 12:27:55 2015 +0200

    Add command line option for generating hyperlinked source.


>---------------------------------------------------------------

ce4b5607f84506e5aafd1994e02300c2e3ee475d
 haddock-api/src/Haddock/Options.hs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/haddock-api/src/Haddock/Options.hs b/haddock-api/src/Haddock/Options.hs
index e847333..c9d5688 100644
--- a/haddock-api/src/Haddock/Options.hs
+++ b/haddock-api/src/Haddock/Options.hs
@@ -66,6 +66,7 @@ data Flag
   | Flag_WikiEntityURL String
   | Flag_LaTeX
   | Flag_LaTeXStyle String
+  | Flag_HyperlinkedSource
   | Flag_Help
   | Flag_Verbosity String
   | Flag_Version
@@ -116,6 +117,8 @@ options backwardsCompat =
     Option ['U'] ["use-unicode"] (NoArg Flag_UseUnicode) "use Unicode in HTML output",
     Option []  ["hoogle"]     (NoArg Flag_Hoogle)
       "output for Hoogle; you may want --package-name and --package-version too",
+    Option [] ["hyperlinked-source"] (NoArg Flag_HyperlinkedSource)
+      "generate highlighted and hyperlinked source code (for use with --html)",
     Option []  ["source-base"]   (ReqArg Flag_SourceBaseURL "URL")
       "URL for a source code link on the contents\nand index pages",
     Option ['s'] (if backwardsCompat then ["source", "source-module"] else ["source-module"])



More information about the ghc-commits mailing list