
25 Jan
2013
25 Jan
'13
1:37 p.m.
2013/1/25 Daniel Díaz Casanueva
Yes, you're right about the type context. I always forget that Functor is not a superclass of Monad. Anyway, the `fmap` can be done only with `Monad` in the context.
Instead of adding `Functor m` constraint you could write just f n = liftM Seq.fromList . replicateM n Best regards, Petr Pudlak