<div dir="ltr">2013/1/25 Daniel Díaz Casanueva <span dir="ltr"><<a href="mailto:dhelta.diaz@gmail.com" target="_blank">dhelta.diaz@gmail.com</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div><br></div>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.<br><br></div></div>
</blockquote><div><br></div><div>Instead of adding `Functor m` constraint you could write just</div><div><br style="font-family:'courier new',monospace"><span style="font-family:'courier new',monospace"> f n = liftM Seq.fromList . replicateM n</span><br>
</div><div> </div><div>Best regards,</div><div>Petr Pudlak</div><div> </div></div></div></div>