aboutsummaryrefslogtreecommitdiff
path: root/src/HsParseUtils.lhs
Commit message (Collapse)AuthorAgeFilesLines
* More progress -- still on phase1davve2006-07-201-326/+0
|
* Initial modifications -- doesn't compiledavve2006-07-101-1/+1
|
* Teach haddock about line pragmas and add accurate source code linksDuncan Coutts2006-01-211-2/+2
| | | | | | | | | | | | | | | | | | | | | Teach haddock about C and Haskell style line pragmas. Extend the lexer/parser's source location tracking to include the file name as well as line/column. This way each AST item that is tagged with a SrcLoc gets the original file name too. Use this original file name to add source links to each exported item, in the same visual style as the wiki links. Note that the per-export source links are to the defining module rather than whichever module haddock pretends it is exported from. This is what we want for source code links. The source code link URL can also contain the name of the export so one could implement jumping to the actual location of the function in the file if it were linked to an html version of the source rather than just plain text. The name can be selected with the %N wild card. So for linking to the raw source code one might use: --source=http://darcs/haskell.org/foo/%F Or for linking to html syntax highlighted code: --source=http://darcs/haskell.org/foo/%M.html#%N
* [haddock @ 2003-10-20 17:19:22 by sof]sof2003-10-201-11/+31
| | | | support for i-parameters + zip comprehensions
* [haddock @ 2002-07-24 09:42:17 by simonmar]simonmar2002-07-241-63/+73
| | | | Patches to quieten ghc -Wall, from those nice folks at Galois.
* [haddock @ 2002-06-03 13:05:57 by simonmar]simonmar2002-06-031-14/+22
| | | | | | | Allow exporting of individual class methods and record selectors. For these we have to invent the correct type signature, which we do in the simplest possible way (i.e. no context reduction nonsense in the class case).
* [haddock @ 2002-05-27 09:03:51 by simonmar]simonmar2002-05-271-1/+10
| | | | | | | | | | | | | | Lots of changes: - instances of a class are listed with the class, and instances involving a datatype are listed with that type. Derived instances aren't included at the moment: the calculation to find the instance head for a derived instance is non-trivial. - some formatting changes; use rows with specified height rather than cellspacing in some places. - various fixes (source file links were wrong, amongst others)
* [haddock @ 2002-04-10 16:10:26 by simonmar]simonmar2002-04-101-1/+3
| | | | | Now we understand (or at least don't barf on) type signatures in patterns such as you might find when scoped type variables are in use.
* [haddock @ 2002-04-04 16:23:43 by simonmar]simonmar2002-04-041-0/+277
This is Haddock, my stab at a Haskell documentation tool. It's not quite ready for release yet, but I'm putting it in the repository so others can take a look. It uses a locally modified version of the hssource parser, extended with support for GHC extensions and documentation annotations.