[Haskell-cafe] GHCi Loop Detection

John Van Enk vanenkj at gmail.com
Fri Jun 1 17:06:40 CEST 2012


Hi Cafe,

Is there a reason that the GHCi interpreter doesn't detect and report
infinite loops in statements like this (like compiled programs do) even
though no CPU time appears to be used? My (admittedly weak) searching for
an answer didn't turn much up.

let s | not $ null s = [] in s

GHCi v7.0.4 on OSX

Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120601/1aae1097/attachment.htm>


More information about the Haskell-Cafe mailing list