<p dir="ltr">+ is a function of two arguments, and applying via (*) against a list would apply each item as first argument of plus</p>
<p dir="ltr">Doing</p>
<p dir="ltr">pure (+) <*> [1,2,3] <*> [4,5,6]</p>
<p dir="ltr">would work.</p>
<p dir="ltr">What are you trying to achieve?</p>
<div class="gmail_quote">15 квіт. 2015 15:48 "Shishir Srivastava" <<a href="mailto:shishir.srivastava@gmail.com">shishir.srivastava@gmail.com</a>> пише:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi,<div><br></div><div>I am trying to naively print an applicative functor using 'show' like this - </div><div><br></div><div><font face="monospace, monospace">show (pure (+) <*> [1, 2, 3])</font><br></div><div><br></div><div>I know there is something fundamentally wrong with that expression but not sure what. </div><div><br></div><div>Can anyone please point it out.</div><div><br></div><div>Thanks,</div><div><div><div><div dir="ltr"><font color="#0b5394"><font style="background-color:rgb(255,255,255)"><font size="2" face="georgia, serif">Shishir </font></font><br></font><br></div></div></div>
</div></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div>