Misplaced Pages

Haddock (software)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Command-line program documentation generator for Haskell
This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources.
Find sources: "Haddock" software – news · newspapers · books · scholar · JSTOR (September 2018) (Learn how and when to remove this message)
Haddock
Developer(s)Simon Marlow
Initial releaseMay 1, 2002
Stable release2.25.0 Edit this on Wikidata / 2 March 2021; 3 years ago (2 March 2021)
Repository
Written inHaskell
Operating systemCross-platform
Platformx86, PowerPC
TypeDocumentation generation
LicenseBSD-style license
Websitehttp://haskell.org/haddock/

Haddock is a free, portable command-line program documentation generator for Haskell.

Software

It is influenced by IDoc, HDoc, and Doxygen. 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 Glasgow Haskell Compiler (GHC), using a modified form of the HsParser (written in Happy) parser for Haskell included in GHC. Its lightweight markup is based on IDoc's. Haddock is contained in the Haskell Platform.

It is used by the GHC, Gtk2Hs and HTk projects, as well as xmonad.

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

  1. "Release 2.25.0". 2 March 2021. Retrieved 25 March 2021.
  2. Haddock runs on POSIX-compliant operating systems and Microsoft Windows.
  3. "IDoc Manual - Installation". www.cse.unsw.edu.au.
  4. "Homepage of Armin Größlinger". www.fmi.uni-passau.de.
  5. "1.3. Contributors". haskell.org.
  6. ^ "Haddock: A Haskell Documentation Tool" Archived 2006-10-11 at the Wayback Machine -(by Simon Marlow, Proceedings of the ACM SIGPLAN workshop on Haskell, 2002; PDF)
  7. "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 homepage.

External links

Haskell programming
Software
Implementations
(features)
Dialects
Electronic design
Libraries
Package managers
Windowing systems
Web frameworks
Book
Community
Eponym
Italics = discontinued
  • ° = Open-source software
    Book Category:Family Category:Software
  • Categories: