aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
Commit message (Collapse)AuthorAgeFilesLines
...
* Update the version message to fit in small terminalsDavid Waern2008-02-101-2/+2
|
* Change the representation of DocNamesDavid Waern2008-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ross Paterson reported a bug where links would point to the defining module instead of the "best" module for an identifier (e.g Int pointing to GHC.Base instead of Data.Int). This patch fixes this problem by refactoring the way renamed names are represented. Instead of representing them by: > data DocName = Link Name | NoLink Name they are now represented as such: > data DocName = Documented Name Module | Undocumented Name and the the link-env looks like this: > type LinkEnv = Map Name Module There are several reasons for this. First of all, the bug was caused by changing the module part of Names during the renaming process, without changing the Unique field. This caused names to be overwritten during the loading of .haddock files (which caches names using the NameCache of the GHC session). So we might create new Uniques during renaming to fix this (but I'm not sure that would be problem-free). Instead, we just keep the Name and add the Module where the name is best documented, since it can be useful to keep the original Name around (for e.g. source-code location info and for users of the Haddock API). Also, the names Link/NoLink don't really make sense, since wether to use links or not is entirely up to the users of DocName. In the process of following this change into H.Backends.Html I removed the assumption that binder names are Undocumented (which was just an unnecessary assumption, the OccName is the only thing needed to render these). This will probably make it possible to get rid of the renamer and replace it with a traversal from SYB or Uniplate. Since DocName has changed, InterfaceFile has changed so this patch also increments the file-format version. No backwards-compatibility is implemented.
* Don't require -B <ghc-libdir> when no argument filesDavid Waern2007-11-111-27/+41
| | | | | | Change readInterfaceFile to take a Maybe Session, to avoid having to pass -B <ghc-libdir> to Haddock when there're no source files to process. This is nice when computing contents/index for external packages.
* Update copyrightDavid Waern2007-11-111-1/+1
|
* Do some refactoring in the html backendDavid Waern2007-11-111-2/+0
| | | | | | | | | This also merges an old patch by Augustsson: Wed Jul 12 19:54:36 CEST 2006 lennart.augustsson@credit-suisse.com * Print type definitions like signatures if given arrows.
* FIX: contents and index should include external package modules when ↵David Waern2007-11-101-11/+18
| | | | --gen-contents/--gen-index
* Introduce InstalledInterface structure and add more stuff to the .haddock filesDavid Waern2007-11-101-10/+14
| | | | | | | We introduce InstalledInterface capturing the part of Interface that is stored in the interface files. We change the ppHtmlContents and ppHtmllIndex to take this structure instead of a partial Interface. We add stuff like the doc map and exported names to the .haddock file (via InstalledInterface).
* WibbleDavid Waern2007-11-091-2/+2
|
* WibbleDavid Waern2007-11-091-4/+4
|
* Don't exit when there are no file argumentsDavid Waern2007-11-091-1/+0
|
* Synch loading of names from .haddock files with GHC's name cacheDavid Waern2007-11-081-4/+4
|
* Add --ghc-version optionDavid Waern2007-10-201-2/+6
|
* Name changesDavid Waern2007-10-181-3/+2
|
* Refactoring -- get rid of Haddock.PackagesDavid Waern2007-10-181-14/+27
|
* Add support for --read-interface againDavid Waern2007-10-181-6/+11
|
* Add --optghc=.. style flag passing to GHCDavid Waern2007-10-171-7/+3
|
* Rename HaddockModule to InterfaceDavid Waern2007-08-301-2/+2
|
* Rename HaddockModule to Interface and a few more refactoringsDavid Waern2007-08-291-2/+2
|
* Major refactoringDavid Waern2007-08-291-865/+57
|
* Factor out package code to Haddock.PackagesDavid Waern2007-08-171-138/+9
|
* Factor out typechecking phase into Haddock.TypecheckDavid Waern2007-08-171-187/+101
|
* Small comment/layout fixesDavid Waern2007-08-171-2/+1
|
* Move options out of Main into Haddock.OptionsDavid Waern2007-08-171-120/+5
|
* Correct commentsDavid Waern2007-08-161-4/+4
|
* Remove explict module imports in MainDavid Waern2007-08-161-26/+23
|
* Improve code layout in MainDavid Waern2007-08-161-19/+90
|
* Comment the HaddockPackage definitionDavid Waern2007-08-161-0/+2
|
* Simplify some commentsDavid Waern2007-08-161-2/+2
|
* Rename PackageData to HaddockPackageDavid Waern2007-08-161-21/+14
|
* Finalize support for links to other packagesDavid Waern2007-08-161-46/+85
|
* Load all targets explicitly (checkModule doesn't chase dependencies anymore)David Waern2007-08-031-17/+14
|
* Be better at trying to load all module dependencies (debugging)David Waern2007-08-021-20/+49
|
* WibbleDavid Waern2007-08-021-1/+1
|
* Call parseStaticFlags before newSessionDavid Waern2007-07-121-9/+11
|
* Follow changes to the GHC APIDavid Waern2007-07-111-2/+2
|
* Fix conflictsDavid Waern2007-07-111-5/+4
|
* update to compile with the latest GHC & CabalSimon Marlow2007-05-301-6/+6
|
* Follow changes to record constructor representationDavid Waern2007-07-111-8/+8
|
* Do save/read of interface files properlydavve@dtek.chalmers.se2007-04-051-4/+10
|
* Fix stupid compile errordavve@dtek.chalmers.se2007-03-261-1/+1
|
* Add fall-through case to mkExportItemdavve@dtek.chalmers.se2007-03-261-0/+1
|
* Avoid a GHC bug with parseStaticFlags []davve@dtek.chalmers.se2007-03-251-0/+1
|
* Wibbledavve@dtek.chalmers.se2007-03-251-1/+1
|
* De-flatten the namespacedavve@dtek.chalmers.se2007-03-251-7/+7
|
* Remove commented out doc env inferencedavve@dtek.chalmers.se2007-03-251-35/+1
|
* Start work on Haddock APIdavve@dtek.chalmers.se2007-03-251-49/+8
|
* Remove an importdavve@dtek.chalmers.se2007-03-241-1/+1
|
* Remove commented-out DocEntity printingdavve2007-03-091-16/+0
|
* Better exception handling and parsing of GHC flagsdavve2007-03-091-161/+152
|
* Go back to -B flag davve2007-03-081-23/+4
|