[Haskell-beginners] main: <<loop>> ....?
Daniel Fischer
daniel.is.fischer at googlemail.com
Mon Aug 22 10:24:11 CEST 2011
On Monday 22 August 2011, 09:45:46, Sunil S Nandihalli wrote:
> Hi Benjamin,
> It was longer than I could post here .. but here it is ..
>
> https://github.com/sunilnandihalli/is2/blob/master/main.hs
Sorry for the line-mangling:
advanceSweepLineTo front@(rangeToOpenTrapeziaMap,curSweepLineLocation)
newSweepLineLocation = let delta = newSweepLineLocation -
curSweepLineLocation
(expandedTrapezia',_)
= expandToAdvance front newSweepLineLocation
expandedTrapezia
= trace (" expandedTrapezia : "++show expandedTrapezia')
$
expandedTrapezia
There you have an infinite loop of the simple type,
expandedTrapezia = expandedTrapezia
On the right hand side, you're missing a ', should be expandedTrapezia'
I don't know when you've added the trace calls, so there might well be
another problem still.
More information about the Beginners
mailing list