Re: [Haskell-cafe] Arrows and 'do' syntax

2006-07-12 Thread Anatoly Zaretsky
On 7/12/06, Greg Fitzgerald [EMAIL PROTECTED] wrote: I'm trying to translate this HXT code to use the Arrow 'do' syntax: readWriteDoc :: String - IOSLA (XIOState s) b Int readWriteDoc path = readDocument [(a_validate, 0)] path writeDocument [(a_output_encoding, isoLatin1)] -

[Haskell-cafe] Arrows and 'do' syntax

2006-07-11 Thread Greg Fitzgerald
I'm trying to translate this HXT code to use the Arrow 'do' syntax:readWriteDoc :: String - IOSLA (XIOState s) b IntreadWriteDoc path = readDocument [(a_validate, 0)] path writeDocument [(a_output_encoding, isoLatin1)] - getErrStatusThis attempt fails to compile: readWriteDoc :: String -