haskell-docs

A program to find and display the docs and type of a name

http://github.com/ivan-m/haskell-docs

Version on this page:4.2.7
Stackage Nightly 2017-01-17:4.2.7
Latest on Hackage:4.2.9

See all snapshots haskell-docs appears in

BSD-3-Clause licensed by Chris Done
Maintained by [email protected]
This version can be pinned in stack with:haskell-docs-4.2.7@sha256:118aed604978ead87ad927f275cd9ea08a6edcbd3da5ce5cbeed44f4aaeea40b,5063

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

EXAMPLE USAGE

$ haskell-docs hSetBuffering
Package: base
Module: GHC.IO.Handle
hSetBuffering :: Handle -> BufferMode -> IO ()
Computation hSetBuffering `hdl mode` sets the mode of buffering for
 handle `hdl` on subsequent reads and writes.

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. This program tries not to be. If you cannot install this package due to a version problem, open a Github issue. If the versions match up but the build fails, open a Github issue. Neither case should arise.

USING WITH GHCI

> :def doc \input -> return (":!haskell-docs " ++ input)
> :doc getContents
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

Issues/ideas/contributions please make a Github issue: http://github.com/ivan-m/haskell-docs/issues