Ticket #197 (closed defect: duplicate)
Haddock chokes when no main module is given using lhs and cabal.
| Reported by: | timthelion | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Version: | 2.9.4 | Keywords: | |
| Cc: |
Description
dcoutts told me to make a ticket for this.
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.1
$ haddock --version
Haddock version 2.10.0, (c) Simon Marlow 2006 Ported to use the GHC API by David Waern 2006-2008
$ cabal haddock --executables
Running Haddock for Lit-1.0... Preprocessing executable 'helloworld' for Lit-1.0...
dist/build/tmp-5960/lit.hs:5:1: parse error on input `main'
$ haddock lit.lhs -h
Haddock coverage:
0% ( 0 / 2) in 'Main'
Warning: Main: could not find link destinations for:
GHC.Types.IO
name: Lit version: 1.0 cabal-version: >= 1.2 Build-Type: Simple
Executable helloworld
Main-Is: lit.lhs
| Hi there!
\begin{code}
main = print "Hello World!"
\end{code}
-- | Hi there
main = print "Hello World!"
