Haddock (software)

Haddock (software)

Infobox Software
name = Haddock


caption =
author =
developer = Simon Marlow
released = May 1, 2002
latest release version = 2.0.0.0
latest release date = January 8, 2008
latest preview version =
latest preview date =
operating system = Cross-platform
programming language = Haskell
genre = Documentation generation
license = BSD-style license
website = http://haskell.org/haddock/

Haddock is a free, portable [Haddock runs on POSIX-compliant operating systems and Microsoft Windows.] command-line program documentation generator for Haskell. It is influenced by IDoc [http://www.cse.unsw.edu.au/~chak/haskell/idoc/doc/install.html] , HDoc [http://www.fmi.uni-passau.de/~groessli/hdoc/] , and Doxygen. [http://haskell.org/haddock/haddock-html-0.8/ch01s03.html 1.3. Acknowledgements ] ] It produces hyperlinked HTML files from annotated Haskell (the documentation is embedded in comments) source files, with additional information extracted from type annotations ; it supports only partially generating documentation in SGML. It is often used in conjunction with darcs and Cabal. It is dependent on GHC, using a modified form of the HsParser (written in Happy) parser for Haskell included in GHC and does not accept literate Haskell source code. ["Haddock only accepts plain, non-literate, Haskell source. This means that if you program in Literate Haskell, or you need to use the C pre-processor in your Haskell source, then you need to pre-process the files before feeding them to Haddock." From [http://haskell.org/haddock/haddock-html-0.8/invoking.html "Chapter 2. Invoking Haddock"] ] Its lightweight markup is based on IDoc's [http://www.haskell.org/~simonmar/papers/haddock.pdf "Haddock: A Haskell Documentation Tool"] -(by Simon Marlow, "Proceedings of the ACM SIGPLAN workshop on Haskell", 2002; PDF)] . The entire implementation is approximately 2200 lines of code.

It is used by the GHC, Gtk2Hs and HTk projects ["Haddock is being used to document the new hierarchical Haskell libraries. The documentation generated for the libraries shipped with the latest release of GHC is here. The Gtk2Hs project is using Haddock to build reference documentation. The HTk project is using Haddock to generate its library documentation." From the Haddock [http://haskell.org/haddock/ homepage] .] , as well as XMonad and Yi.

Here is an example of Haddock markup: -- | This is the documentation for 'square', which uses the (*) operator from "Prelude". It multiplies the @x@ argument against itself. square :: Integer -> Integer square x = x*x

References

External links

* [http://haskell.org/haddock/ Haddock Website ]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Haddock (disambiguation) — Haddock is a food fish.It is also: * USS Haddock , one of three United States Navy submarinesPeople* Austin Haddock, former name of Austin Mitchell, a British Member of Parliament * Bradley Haddock, VP, general counsel, and secretary of Koch… …   Wikipedia

  • OLIGO Primer Analysis Software — Developer(s) Molecular Biology Insights, Inc. Stable release 7.54 / March 23, 2011 Operating system Windows, Macintosh Platform Mac, PC …   Wikipedia

  • Comparison of documentation generators — The following tables compare general and technical information for a number of documentation generators. Please see the individual products articles for further information. This article is not all inclusive or necessarily up to date. Unless… …   Wikipedia

  • Anexo:Comparativa de generadores de documentación — Las siguientes tablas comparan información general y técnica de un número de generadores de documentación. Por favor, consulte la página individual de cada producto para obtener información adicional. Este artículo no incluye todos los… …   Wikipedia Español

  • Tim und Struppi — Die Mondrakete von Tim und Struppi aus der Folge Reiseziel Mond, ausgestellt im Comic Museum in Brüssel …   Deutsch Wikipedia

  • Bordurien — Tintin Shop in Stockholm, auf der Flagge Tim und Struppi Tim und Struppi (im französischsprachigen Original Les aventures de Tintin) ist eine der bekanntesten und bedeutendsten europäischen Comicserien. Der Belgier Hergé (1907–1983) schrieb und… …   Deutsch Wikipedia

  • Schultze und Schulze — Tintin Shop in Stockholm, auf der Flagge Tim und Struppi Tim und Struppi (im französischsprachigen Original Les aventures de Tintin) ist eine der bekanntesten und bedeutendsten europäischen Comicserien. Der Belgier Hergé (1907–1983) schrieb und… …   Deutsch Wikipedia

  • Struppi — Tintin Shop in Stockholm, auf der Flagge Tim und Struppi Tim und Struppi (im französischsprachigen Original Les aventures de Tintin) ist eine der bekanntesten und bedeutendsten europäischen Comicserien. Der Belgier Hergé (1907–1983) schrieb und… …   Deutsch Wikipedia

  • Syldavien — Tintin Shop in Stockholm, auf der Flagge Tim und Struppi Tim und Struppi (im französischsprachigen Original Les aventures de Tintin) ist eine der bekanntesten und bedeutendsten europäischen Comicserien. Der Belgier Hergé (1907–1983) schrieb und… …   Deutsch Wikipedia

  • Tintinologe — Tintin Shop in Stockholm, auf der Flagge Tim und Struppi Tim und Struppi (im französischsprachigen Original Les aventures de Tintin) ist eine der bekanntesten und bedeutendsten europäischen Comicserien. Der Belgier Hergé (1907–1983) schrieb und… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”