[Haddock] [haddock] #197: Haddock chokes when no main module is given using lhs and cabal.

haddock haddock at projects.haskell.org
Thu Mar 22 19:07:30 GMT 2012


#197: Haddock chokes when no main module is given using lhs and cabal.
-----------------------+----------------------------------------------------
Reporter:  timthelion  |       Owner:        
    Type:  defect      |      Status:  new   
Priority:  minor       |   Milestone:  2.10.0
 Version:  2.9.4       |    Keywords:        
-----------------------+----------------------------------------------------
 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

 ---------lit.cabal--------
 name:     Lit
 version:  1.0
 cabal-version: >= 1.2
 Build-Type:     Simple

 Executable helloworld
   Main-Is:        lit.lhs

 ---------lit.lhs----------
 | Hi there!

 \begin{code}

 main = print "Hello World!"

 \end{code}

 ---------lit.lh----------
 -- | Hi there



 main = print "Hello World!"

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/197>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list