[Haskell] Deepseq

Gilmara Pompelli gilmarampompelli at gmail.com
Fri Oct 22 08:39:19 EDT 2010


Hello

How do I use deepseq, this function to force evaluation, the way I did
is correct?

um :: IO ()
um = do
    conteudo <- learquivo "mkList1.txt"
    mapasort <- return (mapa psort conteudo)
    time $   mapasort `deepseq`  return ()

Thanks


More information about the Haskell mailing list