[Haskell-cafe] Re: Strictness in do block

John Goerzen jgoerzen at complete.org
Wed Jul 5 09:07:14 EDT 2006

On 2006-07-05, Duncan Coutts <duncan.coutts at worc.ox.ac.uk> wrote:
>> What I have done in the past is to take the length of the string, and
>> test the length in some way - although I guess you could call seq on
>> the length.
> evaluate is for just that purpose.
> evaluate (length input)
> from the docs:
> http://haskell.org/ghc/docs/latest/html/libraries/base/Control-Exception.html#v%3Aevaluate

That looks like what I need, but why is it in Control.Exception instead
of System.IO?  If it were in System.IO, I would have found it.

More information about the Haskell-Cafe mailing list