[Haskell-cafe] packages and QuickCheck

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Wed Sep 10 04:20:37 EDT 2008

Am Dienstag, 9. September 2008 15:46 schrieb Sean Leather:
> […]

> Testing non-exported functionality without exporting the test interface
> seems difficult in general. Is there a way to hide part of a module
> interface with Cabal? Then, you could have a 'test' function exported from
> each module for testing but hidden for release.

You can have modules not included in the Exposed-Modules section which contain 
the actual implementation and export also some internals used for testing.  
Then you can let the exposed modules import these internal modules and 
reexport the stuff intended for the public.

> […]

Best wishes,

More information about the Haskell-Cafe mailing list