Hello Claus, Thursday, February 1, 2007, 6:34:23 PM, you wrote:
> is it, though? what makes it longer are features that the original doesn't > have, and what i don't need :) > I think. so how about a less ambitious translation, with crc in an MVar and a > while-loop that can be broken from the body as well as the condition: > while (hGetBuf h buf bufzise .==. (return bufsize)) $ do > crc =: updateCrc crc buf bufsize > breakIf ((val crc) .==. (return 0)) `orElse` do > printM (val crc) > od your solution is just to make lifted copy of each and every pure operation. so one should define 2^n operations where n is number of arguments -- Best regards, Bulat mailto:[EMAIL PROTECTED] _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe