<div><div dir="auto">Because the second one is:</div><div dir="auto"><br></div><div dir="auto">  take (succ 10 (cycle “hello world”))</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 12:03 Josh Friedlander <<a href="mailto:joshuatfriedlander@gmail.com">joshuatfriedlander@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I understand that in general $ is a) right-associative and b) lowest-priority. But if so shouldn't these two be roughly the same?</div><div><br></div><div><span style="font-family:monospace">λ take (succ 10) $ cycle "hello world"</span><br>"hello world"</div><div><br></div><div>But not this?</div><div><span style="font-family:monospace">λ take $ succ 10 $ cycle "hello world"</span></div><div><br><span style="font-family:monospace"></span></div><div><font size="1"><interactive>:20:8: error:<br>    • No instance for (Enum ([Char] -> Int))<br>        arising from a use of ‘succ’<br>        (maybe you haven't applied a function to enough arguments?)<br>    • In the expression: succ 10<br>      In the second argument of ‘($)’, namely<br>        ‘succ 10 $ cycle "hello world"’<br>      In the expression: take $ succ 10 $ cycle "hello world"<br><br><interactive>:20:13: error:<br>    • No instance for (Num ([Char] -> Int))<br>        arising from the literal ‘10’<br>        (maybe you haven't applied a function to enough arguments?)<br>    • In the first argument of ‘succ’, namely ‘10’<br>      In the expression: succ 10<br>      In the second argument of ‘($)’, namely<br>        ‘succ 10 $ cycle "hello world"’</font></div></div><br><br>_______________________________________________<br><br>Beginners mailing list<br><br><a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br><br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br><br></blockquote></div></div>