On Sun, 19 Apr 2009, Manlio Perillo wrote:

Note that it is not always possible to separate IO from pure code.
As an example, consider an HTTP 1.1 server that read a request body
containing a number for each line, and return a response body containing
the sum of the numbers.

Here, you can not really separate IO from pure computation.
And you can not use lazy IO, if you want your server to support HTTP 1.1
pipelining.

I have done exactly this, but I needed to define the LazyIO type:
   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/http-monad
   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/lazyio
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to