Compiling HXML toolbox under Hugs/Windows

Ross Paterson ross at soi.city.ac.uk
Mon Jan 12 13:48:43 EST 2004


On Mon, Jan 12, 2004 at 11:59:58AM +0000, Graham Klyne wrote:
> (1) hdom/xmltreefilter.hs, incorrect section syntax:
> line 555, changed to:
> del1Attr an = processAttrl ((none `when` isAttr an) $$)
> line 613, changed to:
>     = processAttrl ((modifyValue `when` isAttr an) $$)

This is a known bug in Hugs (User's Guide 4.1.2).

> (3) hparser/xmlinput.hs, line 38:  spurious ','

Accepting this was a bug in old versions of GHC that has since been fixed.

> (4) Missing module 'Socket'.
> [[
> Reading file "..\hparser\XmlInput.hs":
> Parsing
> ERROR "..\hparser\XmlInput.hs" - Can't find imported module "Socket"
> ]]
> Is this a GHC/Hugs library difference?  Should this be Network.Socket?  I 
> tried using that and it seemed to be accepted.

Network.Socket is the modern name.

> (6) I think a probem with the build instructions in README:
> [[
> Just add the modules from the directories "hdom", "hparser", "hvalidator",
> "hxpath", "http" and
> "parsec" to the path of your compiler or interpreter, the Makefile contains
> an example.
> It is planned to provide a GHC package of the Haskell XML Toolbox in the
> near future.
> An example ghci project file ".ghci" can be found in the examples directory.
> ]]
> does not mention directory popen.

GHC has POpen in hslibs.

> (7) in POpen.hs:
> Module Posix should be Text.Regex.Posix?

No, System.Posix, but the Hugs version is incomplete (lacks forkProcess).


More information about the Hugs-Users mailing list