There is an extensive test suite that runs without fault under Hugs and GHCi.
This module duplicates the general functionality of the old GHC Network.URI module, and adds:
- functions to parse different categories of URI (relative, absolute, URI-reference, etc.)
- functions to test for different kinds of URI (returning Bool instead of Maybe URI).
- 'relativeFrom', a function to calculate a relative URI with respect to a given base, to complement the existing 'relativeTo'.
- functions to perform some common forms of URI normalization.
- default behaviour is to not display the password field associated with userinfo in a URI. (This area needs some tidying up).
The structure of the underlying URI implementation has changed quite a lot, but I've also defined some accessor functions that reflect the original structure fields. (Oops, I just noticed I forgot to export them)
The code can be browsed at: http://www.ninebynine.org/Software/HaskellUtils/Network/
#g
------------ Graham Klyne For email: http://www.ninebynine.org/#Contact
_______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
