[Haskell-cafe] getErrorStatus in HXT

Tobias Schoofs tobias.schoofs at gmx.net
Fri Dec 3 13:52:37 CET 2010


Hi,

I have some problems with the error processing in HXT.

Here is a trivial example:

e <- runX (transformDoc [] someRules src dst)

transformDoc cfg rules src dst =
    configSysVars cfg >>>
    readDocument  [] src >>>
    rules >>> -- some transformations
    writeDocument [] dst >>>
    getErrStatus

I would expect "e" to contain an error value >= c_err for the case where 
any of the processing steps in transformDoc fails. But it does not, even 
with an io error on writeDocument.

I guess I misunderstand "getErrStatus" in some way. Any idea?

Thanks,

Tobias


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101203/78c37e37/attachment.htm>


More information about the Haskell-Cafe mailing list