Hi, I have added a little pipes frontend to one of my pet example and I was wondering how idiomatic (or not) it is.
http://lpaste.net/103623 Basically instead of consuming a list with mapM (the `scores` function) I am streaming input from stdin. Consequently I need to treat the end of game differently than a bogus shot. Nothing to do with Pipes but I am not sure annotation 2 is better because it forces all client `score` code to unwrap StateT whereas I only need the state monad when I have to deal with a list of shots. Is there a more idiomatic way to do this ? The github repo is here : https://github.com/PierreR/afgame/tree/master/haskell Thanks for your feedback -- You received this message because you are subscribed to the Google Groups "Haskell Pipes" 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].
