[Haskell-cafe] Processing XML with HXT

rodrigo.bonifacio rodrigo.bonifacio at uol.com.br
Tue Apr 22 14:07:49 EDT 2008


Hi all,

I´m just starting with HXT. My question is, how can I expose a "use case" from the main function below (the XmlPickler for UseCase has been already defined):

main :: IO ()
main = do
      runX ( xunpickleDocument xpUseCase [ (a_validate,v_0) ],  "uc.xml" )
      return ()

For example, if I just want to show the use case contents, how can I call "show" for a retrived use case.

Thanks in advance.

Rodrigo.



More information about the Haskell-Cafe mailing list