現在、Haskell で小さなアプリケーションを開発しています。私もすべて文書化しmain
ました。しかし、cabal haddock --executables
エラーを表示します:
Running Haddock for XComposeChecker-0.1...
Preprocessing executables for XComposeChecker-0.1...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: rts-1.0
haddock coverage for ./XComposeChecker.hs: 8/13 62%
Warning: Couldn't find TyThing for exported Main.main: main:Main.main; not documenting.
haddock coverage for dist/build/tmp3599/./Main.hs: 1/2 50%
Warning: Main: could not find link destinations for:
Main.main
Documentation created: dist/doc/html/XComposeChecker/checker/index.html
そしてMain.hs
それ自体:
import Text.ParserCombinators.Parsec
import System.Directory
import System.FilePath
import XComposeChecker
-- | Main
main = do
homedir <- getHomeDirectory
result <- parseFromFile parseXComposeFile (joinPath [homedir, ".XCompose"])
print result
haddock
のドキュメントが見つからないのはなぜmain
ですか?
ghc-7.0.4
、cabal-1.10.2.0
およびを使用haddock-2.9.2
しFedora 17
ます。