TypeDD-Samples icon indicating copy to clipboard operation
TypeDD-Samples copied to clipboard

^D in the average word length example causes weird behavior

Open 1-p opened this issue 7 years ago • 0 comments

In this example, https://github.com/edwinb/TypeDD-Samples/blob/master/Chapter2/AveMain.idr, entering ^D just cause an infinite stream of "Enter a string: The average word length is: nan". Is this expected or a bug?

I expect it to show "Enter a string: The average word length is: nan" just once.

1-p avatar Apr 13 '17 03:04 1-p