
22 Apr
2008
22 Apr
'08
10:31 p.m.
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]