aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Interface/Create.hs
Commit message (Collapse)AuthorAgeFilesLines
...
* Wibbles.David Waern2011-12-271-24/+23
|
* Cleanup.David Waern2011-12-271-39/+12
|
* Get rid of quite unnecessary use of different lists.David Waern2011-12-271-33/+14
|
* Go back to having a doc, sub and decl map instead of one big decl map.David Waern2011-12-271-117/+115
| | | | | | | | | This setup makes more sense since when we add value bindings to the processed declarations (for type inference), we will have multiple declarations which should share documentation. Also, we already have a separate doc map for instances which we can now merge into the main doc map. Another benefit is that we don't need the DeclInfo type any longer.
* More cleanup.David Waern2011-12-031-16/+25
|
* Cleanup.David Waern2011-12-031-27/+11
|
* Slightly better behaviour on top-levels without type signatures.David Waern2011-12-031-127/+76
| | | | | | | | - Docs don't get attached to the next top-level with signature by mistake. - If there's an export list and the top-level is part of it, its doc comment shows up in the documentation.
* Remove #ifs for older compiler versions.David Waern2011-11-251-4/+0
|
* Fix build.David Waern2011-11-061-1/+1
|
* Use getDeclMainBinder instead of declNames.David Waern2011-11-061-33/+4
|
* Improved declNames internal error. Added a case to handle DocD.Ryan Newton2011-11-051-3/+24
|
* Follow changes to ForeignImport/ForeignExport in GHCIan Lynagh2011-10-011-1/+1
|
* Adapt Haddock for the ConstraintKind extension changesMax Bolingbroke2011-09-061-1/+1
|
* Fix buildIan Lynagh2011-06-171-1/+1
|
* * Merge in git patch from Michal TerepetaDavid Waern2011-06-111-23/+39
| | | | | | | | | | | | | | | | From 6fc71d067738ef4b7de159327bb6dc3d0596be29 Mon Sep 17 00:00:00 2001 From: Michal Terepeta <michal.terepeta@gmail.com> Date: Sat, 14 May 2011 19:18:22 +0200 Subject: [PATCH] Follow the change of TypeSig in GHC. This follows the change in GHC to make TypeSig take a list of names (instead of just one); GHC ticket #1595. This should also improve the Haddock output in case the user writes a type signature that refers to many names: -- | Some comment.. foo, bar :: ... will now generate the expected output with one signature for both names.
* IndentationDavid Waern2011-05-221-14/+14
|
* Fix some stylistic issues in mkExportItemsDavid Waern2011-05-221-19/+11
|
* Break out fullContentsOf, give it a better name and some documentationDavid Waern2011-05-221-22/+46
| | | | | The documentation describes how we want this function to eventually behave, once we have fixed a few problems with the current implementation.
* Fix a bugDavid Waern2011-05-221-3/+3
|
* We don't need to send DocOptions nor a flag to mkExportItemsDavid Waern2011-05-221-9/+9
|
* Improve a haddock commentDavid Waern2011-05-211-2/+2
|
* Fix build with ghc 7.0.1David Waern2011-03-101-0/+4
|
* Update Haddock to reflect change in hs_tyclds field of HsGroupsimonpj2011-01-101-7/+7
|
* Make a little more use of DoAndIfThenElseDavid Waern2010-11-161-47/+46
|
* print haddock coverage info on stdout when generating docsSimon Michael2010-09-221-2/+10
| | | | | | A module's haddockable items are its exports and the module itself. The output is lightly formatted so you can align the :'s and sort for readability.
* Get rid of GhcModule and related cruftDavid Waern2010-08-261-15/+18
| | | | We can get everything we need directly from TypecheckedModule.
* isLocalAndTypeInferenced: fix for local module names overlapping package modulesSimon Marlow2010-06-221-2/+6
|
* Position the module header the same way everywhereDavid Waern2010-05-131-1/+0
| | | | Silly, but nice with some consistency :-)
* ModuleMap -> IfaceMapDavid Waern2010-05-131-4/+4
|
* Fix #112David Waern2010-04-101-20/+23
| | | | | | | | No link was generated for 'Addr#' in a doc comment. The reason was simply that the identifier didn't parse. We were using parseIdentifier from the GHC API, with a parser state built from 'defaultDynFlags'. If we pass the dynflags of the module instead, the right options are turned on on while parsing the identifer (in this case -XMagicHash), and the parse succeeds.
* Remove unused ifaceLocalsdavid.waern2010-02-241-2/+0
|
* Fix Haddock markup error in commentdavid.waern2010-02-221-1/+1
|
* Remove unnecessary (and inexplicable) uses of nubDavid Waern2010-01-221-2/+2
|
* Remove bad whitespace and commented-out piecesDavid Waern2009-11-271-65/+61
|
* Comments on instancesDavid Waern2009-11-241-6/+28
| | | | | | | | | | | | | | | Implementing this was a little trickier than I thought, since we need to match up instances from the renamed syntax with instances represented by InstEnv.Instance. This is due to the current design of Haddock, which matches comments with declarations from the renamed syntax, while getting the list of instances of a class/family directly using the GHC API. - Works for class instances only (Haddock has no support for type family instances yet) - The comments are rendered to the right of the instance head in the HTML output - No change to the .haddock file format - Works for normal user-written instances only. No comments are added on derived or TH-generated instances
* Remove commented-out codeDavid Waern2009-11-151-8/+0
|
* hlint policeDavid Waern2009-11-141-7/+7
|
* Move toHsInstHead to Haddock.Convert and call it synifyInstHeadDavid Waern2009-09-061-1/+1
|
* Eradicate wrong runtime warning for type-inferenced exported-functionsIsaac Dupree2009-08-241-2/+49
| | | | see the long comment in the patch for why I did it this way :-)
* refactor out subordinatesWithNoDocsIsaac Dupree2009-08-241-2/+14
| | | | dep of inferenced-decls fix
* Improve behavior for unfindable .haddockIsaac Dupree2009-08-231-26/+46
|
* cross-package fnArgDocs. WARNING: changes .haddock binary formatIsaac Dupree2009-08-231-7/+6
| | | | | | | | | | | | | | | | While breaking the format, I took the opportunity to unrename the DocMap that's saved to disk, because there's really no reason that we want to know what *another* package's favorite place to link a Name to was. (Is that true? Or might we want to know, someday?) Also, I added instance Binary Map in InterfaceFile. It makes the code a little simpler without changing anything of substance. Also it lets us add another Map hidden inside another Map (fnArgsDocs in instDocMap) without having really-convoluted serialization code. Instances are neat! I don't understand why this change to InterfaceFile seemed to subtly break binary compatibility all by itself, but no matter, I'll just roll it into the greater format-changing patch. Done!
* re-implement function-argument docsIsaac Dupree2009-08-231-15/+29
| | | | | | | ..on top of the lexParseRn work. This patch doesn't change the InstalledInterface format, and thus, it does not work cross-package, but that will be easy to add subsequently.
* fix horrible named-docs-disappearing bug :-)Isaac Dupree2009-08-231-5/+16
|
* Move doc parsing/lexing into Haddock for ghc>=6.11Isaac Dupree2009-08-231-46/+94
|
* Cross-Package Documentation version 4Isaac Dupree2009-08-121-9/+40
|
* Fix unused import warningsIan Lynagh2009-07-071-4/+0
|
* Add Haddock module headersDavid Waern2009-06-241-5/+10
| | | | | | | | | 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.
* Move H.GHC.Utils to H.GhcUtilsDavid Waern2009-04-051-1/+1
|
* hlint policeDavid Waern2009-04-011-3/+2
|