[haddock] #58: internal Haddock or GHC error with --source-entity arg
haddock
haddock at projects.haskell.org
Wed Dec 17 06:23:17 EST 2008
#58: internal Haddock or GHC error with --source-entity arg
-------------------------+--------------------------------------------------
Reporter: NeilMitchell | Owner:
Type: defect | Status: reopened
Priority: major | Milestone: 2.5.0
Version: | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Changes (by Dominic.Steinitz at barclayscapital.com):
* status: closed => reopened
* resolution: fixed =>
* milestone: 2.3.0 => 2.5.0
Comment:
I still get errors with ignore-exports. Here's an example:
{{{
{-# OPTIONS_HADDOCK ignore-exports #-}
-----------------------------------------------------------------------------
-- |
-- Module : HaddockBug
--
-- Copyright : TBD
-- License : TBD
--
-- Maintainer : A N Other
-- Stability : TBD
--
-- Export some functions but not all
--
-----------------------------------------------------------------------------
module HaddockBug (exportThis) where
exportThis :: String
exportThis = "Export This"
dontExportThis :: String
dontExportThis = "Don\'t Export This"
}}}
{{{
../ThirdParty/bin/haddock.exe HaddockBug.hs --optghc=-cpp
--optghc=-package=base-3.0.3.0 --html --od
ir=HaddockDocs -tFPF \
--read-
interface=http://www.haskell.org/ghc/docs/6.10.1/html/libraries/haskell98,..\ThirdParty\ghc\g
hc-6.10.1\doc\libraries\haskell98\haskell98.haddock \
--read-
interface=http://www.haskell.org/ghc/docs/6.10.1/html/libraries/random,..\ThirdParty\ghc\ghc-
6.10.1\doc\libraries\random\random.haddock \
--read-
interface=http://www.haskell.org/ghc/docs/6.10.1/html/libraries/mtl,..\ThirdParty\ghc\ghc-6.1
0.1\doc\libraries\mtl\mtl.haddock \
--read-interface=http://www.haskell.org/ghc/docs/6.10.1/html/libraries
/ghc-prim,..\ThirdParty\ghc\gh
c-6.10.1\doc\libraries\ghc-prim\ghc-prim.haddock \
--read-
interface=http://www.haskell.org/ghc/docs/6.10.1/html/libraries/containers,..\ThirdParty\ghc\
ghc-6.10.1\doc\libraries\containers\containers.haddock \
--read-
interface=http://www.haskell.org/ghc/docs/6.10.1/html/libraries/base,..\ThirdParty\ghc\ghc-6.
10.1\doc\libraries\base\base.haddock \
--source-entity=../HsColourDocs/%M.html\#%N
Warning: main:HaddockBug: could not find link destinations for:
HaddockBug.dontExportThis
haddock: internal Haddock or GHC error:
src\Haddock\Backends\Html.hs:1744:8-30: Irrefutable pattern
failed for pattern Haddock.DocName.Documented n mod
make: *** [HaddockBug.html] Error 1
}}}
--
Ticket URL: <http://trac.haskell.org/haddock/ticket/58#comment:2>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool
More information about the Haddock
mailing list