
7 Sep
2010
7 Sep
'10
7:13 p.m.
Quoth Donn Cave
I think it's very likely there's a simpler way to do this with Data.Serial as written, I am just a little backwards with state monads and that kind of thing.
OK, another look at it reveals that "mplus" can be used for this application, so much more simply, import Control.Monad (mplus) getx = do a <- get x <- getn `mplus` return [] return (a:x) Donn Cave, donn@avvanta.com