2013/1/25 Daniel Díaz Casanueva <[email protected]>

>
> 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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to