newbie: how to expose a package?

Larry Evans cppljevans at
Thu Oct 28 11:42:17 EDT 2010

On 10/27/10 13:39, Larry Evans wrote:
> With the following .hs:
> ==<--TestPrettyPrintLeijen.hs-->
> module TestPrettyPrintLeijen where
> import Debug.QuickCheck.Batch
> {- Above import based on exposed-modules: section of:
> /usr/lib/ghc-6.12.1/package.conf.d/QuickCheck-
>    However:
> ghci TestPrettyPrintLeijen.hs
>    produces error:
> TestPrettyPrintLeijen.hs:9:7:
>     Could not find module `Debug.QuickCheck.Batch':
>       It is a member of the hidden package `QuickCheck-'.
>       Use -v to see a list of the files searched for.
> -}
> How does one enable import of a module from some package?
Apparently using uickCheck- to pick module name is not
right.  However, using names from:


and in particular:


works.  I should have read:

more closely, and in particular:

  You can see GHC's package table by running GHC with the -v  flag.

which showed:

  hiding package QuickCheck- to avoid conflict with later
    version QuickCheck-

Sorry for noise.


More information about the Glasgow-haskell-users mailing list