Difference between revisions of "Haddock/FAQ"
< Haddock
Jump to navigation
Jump to search
m (++category) |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
You must have the relevant documentation installed e.g. ghc-doc. Then you can say e.g.: |
You must have the relevant documentation installed e.g. ghc-doc. Then you can say e.g.: |
||
− | < |
+ | <pre> |
− | + | haddock |
|
+ | -odir=haddock --html |
||
⚫ | |||
− | + | --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/base,/usr/share/doc/packages/ghc-doc/libraries/base/base.haddock |
|
⚫ | |||
− | + | Data/LargeWord.hs |
|
+ | </pre> |
||
or much easier just use cabal: |
or much easier just use cabal: |
||
Line 17: | Line 19: | ||
[[Category:FAQ]] |
[[Category:FAQ]] |
||
+ | [[Category:Stub articles]] |
Latest revision as of 00:11, 17 June 2021
My version of Haddock does not accept some infix operators like (#)
(#)
In fact it does, but you have to add spaces between parentheses and the infix symbols sometimes: ( # )
.
How do I get hyperlinks to definitions in e.g. Haskell98?
You must have the relevant documentation installed e.g. ghc-doc. Then you can say e.g.:
haddock -odir=haddock --html --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/base,/usr/share/doc/packages/ghc-doc/libraries/base/base.haddock --read-interface=http://www.haskell.org/ghc/docs/latest/html/libraries/haskell98,/usr/share/doc/packages/ghc-doc/libraries/haskell98/haskell98.haddock Data/LargeWord.hs
or much easier just use cabal:
./Setup haddock