[Haskell-cafe] How to selectively export internal entities from a module for testing?

Neil Mitchell ndmitchell at gmail.com
Thu May 24 10:45:31 EDT 2007


Hi Thorkil,

> For possible guidance, I have looked at
> http://darcs.haskell.org/packages/filepath and System/FilePath/Internal.hs
> contains
>
> >     -- Note: leave this section to enable some of the tests to work
> > #ifdef TESTING
> >     -- * Drive methods
> >     splitDrive, joinDrive,
> >     takeDrive, replaceDrive, hasDrive, dropDrive, isDrive,
> > #endif
>
> But I am wondering whether other solutions to this problem could be found,
> perhaps even solutions that stay within the limits of the Haskell language
> itself? If anybody know of alternative solutions, I would very much like to
> hear about them.

Yhc already has this:

     -exportall     export all identifiers from a module, despite what the
                    export list says (default=off)

Primarily for use in yhe, the yhc teams alternative to ghci.

Thanks

Neil


More information about the Haskell-Cafe mailing list