Testing library modules

Simon Marlow simonmar at microsoft.com
Thu Apr 7 06:59:24 EDT 2005

On 07 April 2005 11:18, Graham Klyne wrote:

> I've just discovered that my recent checkins of Network.URI were not
> safe.  I thought that I had run the changes against my test suite,
> but just discovered that the test suite was actually being compiled
> against the version of Network.URI shipped with GHC 6.4.
> I had expected the "-i" option on the GHC command line (see below) to
> override the shipped version of Network.URI.
> As it happens, I've now checked the new module is OK by forcibly
> renaming the Network.URI files that were installed with GHC 6.4.  But
> this raises a concern for me:  how can I safely and reliably test a
> replacement version of a GHC-shipped library module?

In GHC you can say '-hide-package network' (or, perhaps better
'-ignore-package network') to remove the network package from the module
namespace.  It will then use the local version instead.


More information about the Libraries mailing list