aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
Commit message (Collapse)AuthorAgeFilesLines
* Add some basic "verbose" mode logging in H.InterfaceDavid Waern2008-12-071-4/+2
|
* Add verbosity flag and utils, remove "verbose" flagDavid Waern2008-12-071-2/+10
|
* Fix bad error handling with newer GHCsDavid Waern2009-02-251-1/+7
| | | | | | | | When support for GHC 6.10 was added, an error handler was installed only around the typechecking phase. This had the effect that errors thrown during dependency chasing were caught in the top-level exception handler and not printed with enough detail. With this patch we wrap the error handler around all our usage of the Ghc monad.
* Show re-exported names from external packages againDavid Waern2009-01-021-7/+4
| | | | | | | This fixes GHC ticket 2746. In order to also link to the exported subordinate names of a declaration, we need to re-introduce the sub map in the .haddock files.
* Try and find a better package name than "main" for Hoogle, goes wrong when ↵Neil Mitchell2008-12-181-1/+2
| | | | working on an executable rather than a library
* Store hidden modules in .haddock filesDavid Waern2008-11-151-13/+12
| | | | | | | | | | | | | We store documentation for an entity in the 'InstalledInterface' of the definition site module, and never in the same structure for a module which re-exports the entity. So when a client of the Haddock library wants to look up some documentation, he/she might need to access a hidden module. But we currently don't store hidden modules in the .haddock files. So we add the hidden modules and the Haddock options to the .haddock files. The options will be used to filter the module list to obtain the visible modules only, which is necessary for generating the contents and index for installed packages.
* Do not save hidden modules in the .haddock file (also for ghc >= 6.9)David Waern2008-10-211-2/+4
| | | | | When writing the first patch, I forgot to do the fix in both branches of an #if macro.
* Do not save hidden modules in the .haddock fileDavid Waern2008-10-201-6/+5
| | | | | | | | | We were saving interfaces of all processed modules including those hidden using {-# OPTIONS_HADDOCK hide #-} in the .haddock file. This caused broken links when generating the index for the libraries that come with GHC. This patch excludes modules with hidden documentation when writing .haddock files. It should fix the above problem.
* no need for handleErrMsg now, we don't throw any ErrMsgsSimon Marlow2008-10-101-4/+2
|
* Make Haddock build with GHC 6.8.2David Waern2008-10-101-0/+19
|
* Interleave typechecking with interface creationDavid Waern2008-10-091-10/+6
| | | | | | At the same time, we fix a bug where the list of interfaces were processed in the wrong order, when building the links and renaming the interfaces.
* Add PatternSignatures LANGUAGE pragma to Main and UtilsDavid Waern2008-09-241-1/+2
|
* Fix paths used on Windows frmo a GHC tree: There is no whare directoryIan Lynagh2008-09-211-1/+1
|
* Port Main to new GHC API.Thomas Schilling2008-09-151-20/+24
|
* Wibble importsIan Lynagh2008-09-121-2/+5
|
* Add a LANGUAGE ForeignFunctionInterface pragmaIan Lynagh2008-09-121-0/+1
|
* Import GHC.Paths if not IN_GHC_TREE, seems to match the use of GHC.Paths ↵Neil Mitchell2008-09-111-3/+2
| | | | functions much better
* Fix installed haddock on WindowsIan Lynagh2008-09-101-5/+8
|
* Fix haddock inplace on WindowsIan Lynagh2008-09-101-3/+1
|
* Fix in-tree haddock on WindowsIan Lynagh2008-08-291-4/+39
|
* Fixes for using haddock in a GHC build treeIan Lynagh2008-08-281-1/+8
|
* Make Hoogle add documentation to a packageNeil Mitchell2008-08-131-1/+1
|
* Follow extensible exceptions changesDavid Waern2008-08-131-11/+33
|
* Use ghc-paths to get the lib dirDavid Waern2008-06-261-3/+8
| | | | | 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.
* Be more consistent with GHC API naming in H.GHC.UtilsDavid Waern2008-06-191-2/+2
|
* Change Hoogle to take the package name and package version separatelyNeil Mitchell2008-06-161-2/+5
|
* Change packageName to packageStr, as it better reflects the information ↵Neil Mitchell2008-06-161-6/+6
| | | | stored in it
* Rewrite the --hoogle flag supportNeil Mitchell2008-06-071-0/+2
|
* 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
|