[Haskell-cafe] GHCi Loop Detection

Michal Terepeta michal.terepeta at gmail.com
Sat Jun 2 18:57:15 CEST 2012

On 01.06 11:06, John Van Enk wrote:
> 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

Hi John,

I think this is a known problem in GHCi:


More information about the Haskell-Cafe mailing list