[Haskell-cafe] getErrorStatus in HXT
tobias.schoofs at gmx.net
Sat Dec 4 19:05:10 CET 2010
thanks a lot for the clarification!
Indeed, I was a bit confused since all other concepts in HXT are
straight forward and easy to grasp.
When is the release of hxt-9.1 on hackage expected?
On 12/04/2010 05:49 PM, Uwe Schmidt wrote:
> Hi Tobias,
>> 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>>>
>> 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?
> no, you've got it as it should be. This is an error introduced hxt-9.0
> when changing the internals of the global hxt state. I've removed that
> bug in the head of the development version.
> If there's no time for you to wait until hxt-9.1, the dev. version is available
> from github at "https://github.com/UweSchmidt/hxt".
> Sorry for that inconvenience,
More information about the Haskell-Cafe