Installing HaXML,(using Hugs and WindowsXP)

Has anyone successfully installed HaXML to be used with winhugs in XP. Using the build.bat included with HaXML it seems that it can only be installed for GHC. Any suggestions? Thanks Tom Spencer PS. Apologies that this is pretty vague

"Tom Spencer"
Has anyone successfully installed HaXML to be used with winhugs in XP. Using the build.bat included with HaXML it seems that it can only be installed for GHC.
Have you tried using the hugs-package command in a shell window? hugs-package HaXml-1.12/src If it doesn't work due to cpp #ifdefs in the HaXml code, then you could download cpphs from http://haskell.org/cpphs and do something like cpphs.bat contains: runhugs cpphs/Main.hs -D__HUGS__ -D__HASKELL98__ "%1" -O "%2" install.bat contains: set CPPHS=cpphs.bat rem A very long line (500-600 chars) follows here. rem It should not need changing. set SRCS=Text/XML/HaXml.hs Text/XML/HaXml/Combinators.hs Text/XML/HaXml/Lex.hs Text/XML/HaXml/Parse.hs Text/XML/HaXml/Pretty.hs Text/XML/HaXml/Types.hs Text/XML/HaXml/Validate.hs Text/XML/HaXml/Wrappers.hs Text/XML/HaXml/OneOfN.hs Text/XML/HaXml/Xml2Haskell.hs Text/XML/HaXml/Haskell2Xml.hs Text/XML/HaXml/Verbatim.hs Text/XML/HaXml/Escape.hs Text/XML/HaXml/Html/Generate.hs Text/XML/HaXml/Html/Parse.hs Text/XML/HaXml/Html/Pretty.hs Text/XML/HaXml/Xtract/Combinators.hs Text/XML/HaXml/Xtract/Lex.hs Text/XML/HaXml/Xtract/Parse.hs Text/ParserCombinators/HuttonMeijerWallace.hs for %%F in ( %SRCS% ) do COPY src/%%F src/%%F.cpp for %%F in ( %SRCS% ) do %CPPHS% src/%%F.cpp src/%%F hugs-package src The syntax of the DOS command script might need some tweaking, but hopefully you get the general idea. Regards, Malcolm

At 22:29 23/08/04 +0100, Tom Spencer wrote:
Has anyone successfully installed HaXML to be used with winhugs in XP. Using the build.bat included with HaXML it seems that it can only be installed for GHC.
Er, yes. (I did the original version of that batch file, which was pretty primitive, and only intended for GHC.) For use with Hugs, I just copy the files into an appropriate directory and make sure Hugs can see that directory: Here's an example of a batch file I use to run Hugs (not WinHugs, but a similar idea should work, I think) with access to the HaXml code: [[ rem Use Hugs version compiled with Unicode support set HUGS=C:\DEV\Hugs98\hugs-20040109.exe set LIBS=D:\Cvs\DEV\HaskellUtils\HaXml-1.12\src %HUGS% -P"%LIBS%;" %1 PAUSE ]] Ah, looking at that, I recall that HaXml needs Unicode support (or maybe it's just my modified version of HaXml), which isn't standard in the Nov-2003 release of Hugs for Windows. I've built versions of Hugs and RunHugs (but unfortunately not WinHugs) with Unicode support (you also need to use a later prelude.hs file), available via: http://www.ninebynine.org/Software/FatHugs.html (I think that's the right URI; I can't get to the server right now to confirm what's actually there.) #g -- At 22:29 23/08/04 +0100, Tom Spencer wrote:
Has anyone successfully installed HaXML to be used with winhugs in XP. Using the build.bat included with HaXML it seems that it can only be installed for GHC.
Any suggestions?
Thanks
Tom Spencer
PS. Apologies that this is pretty vague _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
------------ Graham Klyne For email: http://www.ninebynine.org/#Contact
participants (3)
-
Graham Klyne
-
Malcolm Wallace
-
Tom Spencer