[Haskell-cafe] HaXml and ghci unresolved symbol
mailing_list at istitutocolli.org
Sun Sep 10 06:14:18 EDT 2006
Il Sun, Sep 10, 2006 at 11:41:45AM +0200, Lemmih ebbe a scrivere:
> It looks a bit like 'HaXml' has been updated after 'hxml' was built.
> Try rebuilding 'hxml' against the 'HaXml' you've got installed.
No, I installed the together, HaXml first and then hxml
In hxml there where a couple of bugs, and no cabal file - AFAIK hxml is not
maintained anymore - last release was done in 2002.
I put everything in order and compiled it. Works fine in Hugs.
Who knows, it could be just me.
But! Look at this code, only pure HaXml.
The output should be "a" and works with Hugs:
module Main where
xml = "<a>prova</a>"
doc = xmlParse "tmp" xml
elemName (Document prolog _ (Elem name _ content) _) = name
name = elemName doc
main = putStrLn name
[12:03:27][andrea at laptop:~/devel/haskell/xml]$ ghc --make xml1.hs -package HaXml -o prova
Chasing modules from: xml1.hs
Compiling Main ( xml1.hs, xml1.o )
[12:03:42][andrea at laptop:~/devel/haskell/xml]$ ./prova
[12:03:45][andrea at laptop:~/devel/haskell/xml]$ ghci -package HaXml xml1.hs
Loading package base-1.0 ... linking ... done.
Loading package haskell98-1.0 ... linking ... done.
Loading package HaXml-1.13.1 ... linking ... done.
Skipping Main ( xml1.hs, xml1.o )
Ok, modules loaded: Main.
Prelude Main> main
<interactive>: xml1.o: unknown symbol `TextziXMLziHaXmlziParse_xmlParse_closure'
Prelude Main> :quit
This is just amazing for a Haskell newbie!
More information about the Haskell-Cafe