Exposed module still hidden, why?

Stefan O'Rear stefanor at
Tue Nov 20 16:25:52 EST 2007

On Tue, Nov 20, 2007 at 12:18:57PM -0800, Greg Fitzgerald wrote:
> Using GHC 6.8.1 on Windows XP, after having used ghc-pkg to expose '
> directory-', I am getting an error when I build haddock that says the
> package is hidden.  When I type "ghc-pkg list", the package is not in
> parenthesis.  Typing "ghc -v" says that it is using the file from
> "C:\ghc\ghc-6.8.1\package.conf".  That package.conf file has the 'exposed'
> set to True for that file.  Why does GHC still think the package is hidden?
> ...\haddock-0.8>runhaskell Setup.lhs configure
> Configuring haddock-0.8...
> ...\haddock-0.8>runhaskell Setup.lhs build
> Preprocessing executables for haddock-0.8...
> shift/reduce conflicts:  5
> Building haddock-0.8...
> src/Main.hs:49:7:
>     Could not find module `System.Directory':
>       it is a member of package directory-, which is hidden
> ...\haddock-0.8>ghc-pkg list
> C:/ghc/ghc-6.8.1\package.conf:
>     Cabal-, HUnit-, OpenGL-, QuickCheck-,
>     Win32-, array-, base-, bytestring-,
>     cgi-3001.1.5.1, containers-, directory-, fgl-,
>     filepath-, (ghc-6.8.1), haskell-src-,
>     haskell98-, hpc-, html-, mtl-,
>     network-, old-locale-, old-time-,
>     packedstring-, parallel-, parsec-,
>     pretty-, process-, random-,
>     regex-base-, regex-compat-, regex-posix-,
>     rts-1.0, stm-, template-haskell-, time-,
>     xhtml-3000.0.2.1

This is a Cabal FAQ.

Cabal passes -hide-all-packages to GHC to prevent undeclared
dependancied from creeping in; so you have to explicitly depend on all
used packages.

(Would someone who is involved with the cabal web site PLEASE put this
up somewhere?  FAQs do no good if they have to be typed by humans!)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url :

More information about the Glasgow-haskell-users mailing list