"Tom Spencer" <[EMAIL PROTECTED]> writes:
> 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
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe