Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/haddock. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Jul 23, 2006
  2. Jul 20, 2006
  3. Jul 11, 2006
  4. Jul 10, 2006
  5. May 24, 2006
  6. May 08, 2006
  7. Apr 26, 2006
  8. Apr 24, 2006
    • Ross Paterson's avatar
      extend 'deriving' heuristic a little · bb523f51
      Ross Paterson authored
      If an argument of a data constructor has a type variable head, it is
      irreducible and the same type class can be copied into the constraint.
      (Formerly we just did this for type variable arguments.)
      bb523f51
  9. Apr 20, 2006
    • sven.panne@aedion.de's avatar
      Avoid pattern guards · 34a994d6
      sven.panne@aedion.de authored
      Due to the use of pattern guards in Haddock, GHC was called with
      -fglasgow-exts. This in turn enables bang patterns, too, which broke the
      Haddock build. Removing some unnecessary pattern guards seemed to be the
      better way of fixing this instead of using a pragma to disable pattern
      guards.
      34a994d6
  10. Mar 19, 2006
  11. Mar 13, 2006
  12. Mar 10, 2006
  13. Mar 03, 2006
  14. Mar 08, 2006
  15. Feb 26, 2006
  16. Jan 31, 2006
  17. Jan 24, 2006
  18. Jan 23, 2006
    • duncan.coutts@worc.ox.ac.uk's avatar
      remove a couple TODO items that have been done · 100d464a
      duncan.coutts@worc.ox.ac.uk authored
      The --wiki, or rather the --comment-* options are now documented.
      There is probably no need to have haddock invoke unlit or cpp itself since
      it can now pick up the line pragmas to get the source locations right. Tools
      like Cabal will arrange for preprocessors to be run so there is less of a need
      for tools like haddock to do it themselves.
      100d464a
    • Simon Marlow's avatar
      fix markup · 1a82a297
      Simon Marlow authored
      1a82a297
    • duncan.coutts@worc.ox.ac.uk's avatar
    • duncan.coutts@worc.ox.ac.uk's avatar
      Make the --help output fit in 80 columns. · a2f0f2af
      duncan.coutts@worc.ox.ac.uk authored
      This is a purely cosmetic patch, feel free to ignore it.
      The only trickery going on is that we don't display the deprecated -s, --source
      flags in the help message, but we do still accept them.
      a2f0f2af
    • duncan.coutts@worc.ox.ac.uk's avatar
      Remove the complex substitutions and add more command line flags instead. · eb3c6ada
      duncan.coutts@worc.ox.ac.uk authored
      Instead of incomprehensable URL substitutions like ${MODULE/./-|?m=%} we now
      use three seperate command line flags for the top level, per-module and
      per-entity source and wiki links. They are:
      --source-base, --source-module, --source-entity
      --comments-base, --comments-module, --comments-entity
      
      We leave -s, --source as an alias for --source-module which is how that option
      behaved previously.
      
      The long forms of the substitutions are still available, ${FILE} ${MODULE} etc
      and the only non-trivial substitution is ${MODULE/./c} to replace the '.'
      characters in the module name with any other character c. eg ${MODULE/./-}
      
      Seperating the source and wiki url flags has the added bonus that they can
      be turned on or off individually. So users can have per-module links for
      example without having to also have per-entity links.`
      eb3c6ada
  19. Jan 22, 2006
    • duncan.coutts@worc.ox.ac.uk's avatar
      Extend URL variable expansion syntax and add source links to the contents page · edd9f229
      duncan.coutts@worc.ox.ac.uk authored
      Like the wiki link on the contents and index page, add a source code link too.
      Extend the wiki & source URL variable expansion syntax.
      
      The original syntax was:
      %F for the source file name (the .hs version only, not the .lhs or .hs.pp one)
      %M for the module name (with '.' replaced by '/')
      
      The new syntax is:
      %F or %{FILE} for the original source file name
      %M or %{MODULE} for the module name (no replacements)
      %N or %{NAME} for the function/type export name
      %K or %{KIND} for a type/value flag "t" or "v"
      
      with these extensions:
      %{MODULE/./c} to replace the '.' module seperator with any other char c
      
      %{VAR|some text with the % char in it} which means if the VAR is not in use in
      this URL context then "" else replace the given text with the '%' char
      replaced by the string value of the VAR. This extension allows us to construct
      URLs wit optional parts, since the module/file name is not available for the
      URL in the contents/index pages and the value/type name is not available for
      the URL at the top level of each module.
      edd9f229
  20. Jan 21, 2006
    • duncan.coutts@worc.ox.ac.uk's avatar
      Teach haddock about line pragmas and add accurate source code links · 43bb89fa
      duncan.coutts@worc.ox.ac.uk authored
      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
      43bb89fa
  21. Jan 19, 2006
    • duncan.coutts@worc.ox.ac.uk's avatar
      Rewrite pathJoin to only add a path separator when necessary. · f52324bb
      duncan.coutts@worc.ox.ac.uk authored
      When the path ends in a file seperator there is no need to add another.
      Now using "--wiki=http://blah.com/foo/" should do the right thing.
      (Code snippet adapted from Isaac's FilePath package.)
      f52324bb
    • duncan.coutts@worc.ox.ac.uk's avatar
      Add an optional wiki link for each top level exported name. · 17adfda9
      duncan.coutts@worc.ox.ac.uk authored
      In each module, for each "top level" exported entity we add a hyper link to a
      corresponding wiki page. The link url gets the name of the exported entity as
      a '#'-style anchor, so if there is an anchor in the page with that name then
      the users browser should jump directly to it. By "top level" we mean functions,
      classes, class members and data types (data, type, newtype), but not data
      constructors, class instances or data type class membership.
      
      The link is added at the right of the page and in a small font. Hopefully this
      is the right balance of visibility/distraction.
      
      We also include a link to the wiki base url in the contents and index pages.
      17adfda9
  22. Jan 18, 2006
  23. Jan 17, 2006
  24. Oct 29, 2005
    • simonmar's avatar
      Add configure script and Makefile for the docs · 766cecdd
      simonmar authored
      Add a separate configure script and build system for building the
      documentation.  The configure and Makefile code is stolen from
      fptools.  This is left as a separate build system so that the main
      Cabal setup doesn't require a Unix build environment or DocBook XML
      tools.
      766cecdd
  25. Oct 14, 2005
  26. Oct 10, 2005
  27. Oct 05, 2005
Loading