[Haskell] Re: state of HaXml?

Wagner Ferenc wferi at niif.hu
Wed Dec 27 19:00:56 EST 2006


nr at eecs.harvard.edu (Norman Ramsey) writes:

>   load :: String -> IO X.Document
>   load fn = do handle <- IO.openFile fn IO.ReadMode
>                contents <- IO.hGetContents handle
>                IO.hClose handle
>                return $ XP.xmlParse fn contents

Try not closing the handle before parsing.
-- 
Feri.


More information about the Haskell mailing list