<div dir="ltr">2013/1/25 Daniel Díaz Casanueva <span dir="ltr">&lt;<a href="mailto:dhelta.diaz@gmail.com" target="_blank">dhelta.diaz@gmail.com</a>&gt;</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&#39;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:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,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>