Feldspar/feldspar-language — pull request #120 by emilaxelsson (2014-05-06 11:10:38+00:00)
Title: Simplified Stream implementation

I removed the existential state type in `Stream`. Now streams are represented by a single value `M (M a)` where the outer monad layer is used to initialize and return the method that produces the next element.

@josefs, what do you think about this change. I see no big reason to prefer this implementation other than that the code is a bit simpler. At first, I thought that removing the existential would make it possible to do more things, but this turned out not to be the case.

Note that the generated code is exactly the same as before.

Since the `Stream` constructor is not exported, this change should not break any code.