Re: [Haskell-cafe] Vector to Monadic Stream and back, how?

2010-04-17 Thread Don Stewart
rl: On 14/04/2010, at 09:05, Xiao-Yong Jin wrote: I want to use 'mapM' on Data.Vector.Vector, but it looks like the only 'mapM' defined is in Data.Vector.Fusion.Stream.Monadic. I'm able to use 'stream' and 'liftStream' to convert a 'Vector' to a monadic stream, on which I can use

Re: [Haskell-cafe] Vector to Monadic Stream and back, how?

2010-04-14 Thread Roman Leshchinskiy
On 14/04/2010, at 09:05, Xiao-Yong Jin wrote: I want to use 'mapM' on Data.Vector.Vector, but it looks like the only 'mapM' defined is in Data.Vector.Fusion.Stream.Monadic. I'm able to use 'stream' and 'liftStream' to convert a 'Vector' to a monadic stream, on which I can use 'mapM'. But I

Re: [Haskell-cafe] Vector to Monadic Stream and back, how?

2010-04-14 Thread Xiao-Yong Jin
On Wed, 14 Apr 2010 19:37:22 +1000, Roman Leshchinskiy wrote: On 14/04/2010, at 09:05, Xiao-Yong Jin wrote: I want to use 'mapM' on Data.Vector.Vector, but it looks like the only 'mapM' defined is in Data.Vector.Fusion.Stream.Monadic. I'm able to use 'stream' and 'liftStream' to convert a

[Haskell-cafe] Vector to Monadic Stream and back, how?

2010-04-13 Thread Xiao-Yong Jin
Dear list, I'm trying to change my code from using Data.Array to Data.Vector. I have some question regarding the monadic use of 'Vector'. Searching through the list couldn't give me enough hints, so I guess I'd try my luck asking on the list. I want to use 'mapM' on Data.Vector.Vector, but it