The haskell-docs package

[ Tags: bsd3, development, library, program ] [ Propose Tags ]

Given a module name and a name, it will find and display the documentation of that name.

EXAMPLE USAGE

$ haskell-docs Data.List.Split split
Split a list according to the given splitting strategy. This is
 how to "run" a Splitter that has been built using the other
 combinators.

INSTALLATION

You should ensure that you have

documentation: True

in your .cabal/config so that the necessary .haddock files are generated.

Haddock is very sensitive to the GHC version, and so too will this program be, to GHC, and to Haddock. I suggest installing like this:

cabal install haskell-docs --constraint haddock==2.10.0

But replace the 2.10.0 with the version that haddock --version gives you.

I could perhaps instead have a flag for each GHC release back a few versions.

USING WITH GHCI

> :def doc \input -> return (":!haskell-docs " ++ input)
> :doc System.IO getContents base
The getContents operation returns all user input as a single string,
 which is read lazily as it is needed
 (same as hGetContents stdin).

Add the above :def to your user .ghci to have it on start-up.

CONTRIBUTION AND ISSUES

Issuesideascontributions please make a Github issue: http://github.com/chrisdone/haskell-docs/issues

Properties

Versions 0.1.0.0, 0.1.1.0, 0.2.0.0, 3.0.0, 3.0.2, 3.0.3, 4.0.0, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7
Dependencies base (>4 && <5), containers, ghc, ghc-paths, haddock, monad-loops [details]
License BSD3
Copyright 2012 Chris Done
Author Chris Done
Maintainer chrisdone@gmail.com
Category Development
Home page http://github.com/chrisdone/haskell-docs
Bug tracker http://github.com/chrisdone/haskell-docs/issues
Source repository head: git clone git://github.com/chrisdone/haskell-docs.git
Uploaded Thu Dec 27 01:31:06 UTC 2012 by ChrisDone
Distributions NixOS:4.2.7
Executables haskell-docs
Downloads 8218 total (37 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-22 [all 4 reports]
Hackage Matrix CI

Downloads

Maintainer's Corner

For package maintainers and hackage trustees