Hi Jeffrey! I'm getting to your other questions but I can fire this off quickly
because it's a simpler answer:
The error you're seeing is a GHC error - it's detected that your code has a cycle
and thus will never produce output.
Here's a simpler repro:
x, y :: Int
x = y
y = x
main = print x
(You might need to compile to get the error)
It's often caused by a typo, e.g.
let foo' = 5
in foo + 1 -- Note the missing prime
main = print foo
El 22 jul 2018, a las 02:36, Jeffrey Brown
Sorry, forgot to ask my question: What does the error mean?
> On Sun, Jul 22, 2018 at 12:05 AM Jeffrey Brown <jeffbrown.the(a)gmail.com>
> I wrote some code to generate a random synthdef. You specify the maximum tree-depth
of the signals, and how many signals it contains, and it builds something consisting of
parameters, products, sums, saw waves and sine waves.
> But sometimes (usually, really) when I try to instantiate one of those synthdefs, it
hangs for a few seconds, then announces "Exception: <<loop>>".
Meanwhile the SuperCollider window prints nothing.
> Jeff Brown | Jeffrey Benjamin Brown
> Website | Facebook | LinkedIn(spammy, so I often miss messages here) |
Jeff Brown | Jeffrey Benjamin Brown
Website | Facebook | LinkedIn(spammy, so I often miss messages here) | Github
Haskell-art mailing list -- haskell-art(a)we.lurk.org
To unsubscribe send an email to haskell-art-leave(a)we.lurk.org