rodrigo.bonifacio wrote:
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.
y <- runX (xunpickleDocument xpUseCase [ (a_validate,v_0) ] "uc.xml")
print y
Remark: y :: [UseCase]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe