[Haskell-cafe] Channel9 Interview: Software Composability andthe Future of Languages

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Feb 1 11:41:19 EST 2007

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

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list