News for hackers. Stuff that matters.
Re:Type-safe Transducers in Clojure, Scala, and Haskell by jules on Thursday October 30, 2014 @10:36AM (#8533148)
By the same logic scanl should just have the type:

    (b -> IO a) -> [b] -> IO [a]
instead of

    (a -> b -> a) -> a -> [b] -> [a]
Just putting the whole thing in the IO/ST monad isn't the right solution when you need a very specific form of local state.

There are no comments on this comment yet.