Closed turion closed 8 years ago
It should be defined for Num (or VectorSpace) as well in some way, otherwise one needs this annoying workaround all the time:
Num
VectorSpace
import Data.Monoid mySumFrom :: (Num a, Monad m) => a -> MStreamF m a a mySumFrom a = arr Sum >>> sumFrom (Sum a) >>> arr getSum
Closed with 67af9b1ae4d2f89dc2eb56041b5a6d442caed56f.
It should be defined for
Num
(orVectorSpace
) as well in some way, otherwise one needs this annoying workaround all the time: