aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Options.hs
Commit message (Collapse)AuthorAgeFilesLines
* Differentiate between TH splices (line-links) and regular namesNiklas Haas2014-03-091-7/+11
| | | | | | | | | | | | | | | | | This adds a new type of source code link, to a specific line rather than a specific declaration/name - this is used to link to the location of a TH splice that defines a certain name. Rather hefty changes throughout and still one unresolved issue (the line URLs aren't parsed from the third form of --read-interface which means they're currently restricted to same-interface links). Not sure if this issue is really worth all the hassle, especially since we could just use line links in general. This commit also contains some cleanup/clarification of the types in Haddock.Backends.Xhtml.Decl and shortens some overlong lines in the process. Notably, the Bool parameter was replaced by a Unicode type synonym to help clarify its presence in type signatures.
* Use optLast instead of listToMaybe for sourceUrls/wikiUrlsNiklas Haas2014-03-091-7/+6
| | | | | | This lets you override them using eg. cabal haddock --haddock-options, which can come in handy if you want to use a different layout or URL for your source code links than cabal-install generates.
* Per-module extension flags and language listing.Mateusz Kowalczyk2014-01-121-2/+6
| | | | | | | | | | | | | Any extensions that are not enabled by a used language (Haskell2010 &c) will be shown. Furthermore, any implicitly enabled are also going to be shown. While we could eliminate this either by using the GHC API or a dirty hack, I opted not to: if a user doesn't want the implied flags to show, they are recommended to use enable extensions more carefully or individually. Perhaps this will encourage users to not enable the most powerful flags needlessly. Enabled with show-extensions. Conflicts: src/Haddock/InterfaceFile.hs
* Print missing documentation. Fixes #258.Mateusz Kowalczyk2013-09-181-1/+4
|
* Fixes #231Mateusz Kowalczyk2013-09-181-1/+3
|
* qualification style 'abbreviated' -> 'aliased'Henning Thielemann2012-04-021-2/+2
|
* 'abbreviate' qualification style - basic supportHenning Thielemann2012-04-011-8/+9
| | | | | Currently we ignore the package a module is imported from. This means that a module import would shadow another one with the same module name from a different package.
* emit an error message when the --qual option is used incorrectlyHenning Thielemann2012-04-011-5/+8
|
* add QualOption type for distinction between qualification argument given by ↵Henning Thielemann2012-04-011-5/+5
| | | | | the user and the actual qualification for a concrete module
* Add flag --interface-version.David Waern2011-11-251-0/+3
|
* Add --print-ghc-path.David Waern2011-10-271-0/+3
|
* QUALI -> QUAL in the description --qual for consistencyDavid Waern2010-12-061-1/+1
|
* Remove --debug. It was't used, and --verbosity should take its placeDavid Waern2010-12-061-3/+0
|
* Add a flag --pretty-html for rendering indented html with newlinesDavid Waern2010-12-061-1/+4
|
* Style policeDavid Waern2010-10-161-8/+8
|
* Use "qual" as an abbreviation for qualification instead of "quali" for ↵David Waern2010-10-161-4/+4
| | | | consistency
* Solve conflictsDavid Waern2010-10-161-0/+10
|
* corrected qualification help messageTobias Brandt2010-08-271-2/+1
|
* adding support for local and relative name qualificationTobias Brandt2010-08-271-1/+3
|
* adding the option to fully qualify identifiersTobias Brandt2010-08-271-1/+4
|
* Naming wibblesDavid Waern2010-08-291-9/+10
|
* Add source entity path to --read-interfaceDavid Waern2010-08-291-6/+9
| | | | | | | | | | | | | You can now use this flag like this: --read-interface=<html path>,<source entity path>,<.haddock file> By "source entity path" I mean the same thing that is specified with the --source-entity flag. The purpose of this is to be able to specify the source entity path per package, to allow source links to work in the presence of cross-package documentation. When given two arguments or less the --read-interface flag behaves as before.
* excisting last vestiges of the --xhtml flagMark Lentczner2010-07-241-1/+1
|
* rename --default-themes to --built-in-themesMark Lentczner2010-07-231-3/+3
|
* drop --themes support, add named theme supportMark Lentczner2010-07-231-5/+2
| | | | | | | | | | decided that --themes was silly - no one would do that, just use multiple --theme arguments made --theme a synonym for --css and -c made those arguments, if no file is found, look up the argument as the name of a built in theme all of this let's haddock be invoked with "--theme=classic" for example.
* command like processing for theme selectionMark Lentczner2010-07-231-2/+8
| | | | | | | The bulk of the change is threadnig the selected theme set through functions in Xhtml.hs so that the selected themes can be used when generating the page output. There isn't much going on in most of these changes, just passing it along. The real work is all done in Themes.hs.
* remove --html-help support - it was old, out-of-date, and mostly missingMark Lentczner2010-07-221-8/+0
|
* remove old HTML backendMark Lentczner2010-07-221-4/+2
|
* LaTeX backend (new options: --latex, --latex-style=<style>)Simon Marlow2010-06-301-0/+8
|
* WibbleDavid Waern2010-05-151-1/+1
|
* Improve description of --dump-interfaceDavid Waern2010-05-151-1/+1
|
* Move some more flag functions to Haddock.OptionsDavid Waern2010-05-141-7/+22
|
* De-tabify Haddock.Options and fix other whitespace issuesDavid Waern2010-05-141-52/+52
|
* Re-order things in Haddock.Options a bitDavid Waern2010-05-141-77/+77
|
* Move flag evaluation code from Main to Haddock.OptionsDavid Waern2010-05-141-0/+60
| | | | | | | Determining the value of "singular" flags (by e.g. taking the last occurrence of the flag) and other flag evaluation should done in Haddock.Options which is the module that is supposed to define the command line interface. This makes Main a bit easier on the eyes as well.
* WibbleDavid Waern2010-05-141-1/+1
|
* Re-direct compilation output to a temporary directoryDavid Waern2010-05-141-1/+4
| | | | | Also add a flag --no-tmp-comp-dir that can be used to get the old behaviour of writing compilation files to GHC's output directory (default ".").
* Position the module header the same way everywhereDavid Waern2010-05-131-2/+0
| | | | Silly, but nice with some consistency :-)
* First, experimental XHTML renderingMark Lentczner2010-03-201-0/+2
| | | | | | | | | | | | | | | | | | switch to using the xhtml package copied Html.hs to Xhtml.hs and split into sub-modules under Haddock/Backends/Xhtml and detabify moved footer into div, got ready for iface change headers converted to semantic markup contents in semantic markup summary as semantic markup description in semantic markup, info block in header fixed factored out rendering so during debug it can be readable (see renderToString)
* Add --print-ghc-libdirDavid Waern2009-08-151-0/+3
|
* Add Haddock module headersDavid Waern2009-06-241-3/+11
| | | | | | | | | Add a proper Haddock module header to each module, with a more finegrained copyright. If you feel mis-accreditted, please correct any copyright notice! The maintainer field is set to haddock@projects.haskell.org. Next step is to add a brief description to each module.
* Delete Haddock.Exception and move contents to Haddock.TypesDavid Waern2009-06-241-1/+1
| | | | Only a few lines of code that mainly declares a type - why not just put it in Haddock.Types.
* add unicode outputporges2008-12-071-0/+2
|
* Add verbosity flag and utils, remove "verbose" flagDavid Waern2008-12-071-3/+3
|
* Fix warnings in H.InterfaceFile and H.OptionsDavid Waern2008-11-061-2/+2
|
* Improve wording in the help messageDavid Waern2008-06-261-2/+2
|
* Use ghc-paths to get the lib dirDavid Waern2008-06-261-1/+1
| | | | | The path can still be overridden using the -B flag. It's not longer required to pass the lib dir to the program that runs the test suite.
* Add a flag for turning off all warningsDavid Waern2008-04-111-1/+3
|
* Remove --no-implicit-prelide flagDavid Waern2008-01-071-3/+0
|
* Remove the -use-package flag, we don't support it anywayDavid Waern2008-01-071-3/+0
|