
Thanks everyone. Once I learned what a <<loop>> actually is (I still have a
vague understanding but it has something to do with circular definitions) I
was able to simply inspect the code that I suspected had the problem and
found a typo. It works now.
On Sat, Aug 26, 2023 at 6:44 PM Ivan Perez
Sounds like a Heisenbug (turning profiling or debugging on may affect the reproducibility of the bug).
Run the program for a while with profiling enabled, and the functions involved in the infinite loop might be apparent.
Ivan
On Sat, 26 Aug 2023 at 18:33, Dennis Raddle
wrote: I'm getting Exception: <<loop>>.
It doesn't print the line number. When I load the program into ghci, it still doesn't print the line number. When I trace the program in ghci it never gets to the point of emitting the exception.
I set up my program in stack. I tried both "stack ghci" and just "ghci".. the latter to make sure it wasn't using any compiled code (at least in my own code). If it doesn't print a line number does this mean it's happening in compiled code?
Any ideas how I can go about debugging this?
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.