Hi Tomas,

I fiddled around with this and finally got it working.  I was interpreting 
my program algebra in the identity monad, which is not stack safe.  I 
changed the target monad to IO, and everything worked great.

Cheers,

William

On Tuesday, September 19, 2017 at 5:15:56 PM UTC-4, Tomas Mikula wrote:
>
> Hi William,
>
> someone will be better able to help you if you mention the scalaz version 
> you are using and provide a minimal reproducible example.
>
> Cheers,
> Tomas
>
> On Tue, Sep 19, 2017 at 4:17 PM, <[email protected] <javascript:>
> > wrote:
>
>> Hi Everyone,
>>
>> I am doing some really rudimentary work with free monads, and I've run 
>> into a StackOverflowError with the whileM_ method of a free monad 
>> encompassing my program algebra.  My program gets 664 iterations into the 
>> loop, then crashes with the error.  Has anyone run into this problem?  Is 
>> there a stack-safe way to do a while loop?
>>
>> (I would prefer to not use a while loop, but one has to start somewhere.)
>>
>> Thanks!
>>
>> William
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "scalaz" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/scalaz.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalaz" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/scalaz.
For more options, visit https://groups.google.com/d/optout.

Reply via email to