<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>It might help to imagine if you flip your arguments:</div><div><br></div><div>length [23, 34, 45] / 6 :: Int</div><div><br></div><div>How do you represent 3/6 as an Int?</div><div><br>El 17 abr 2020, a las 03:19, Alexander Chen <<a href="mailto:alexander@chenjia.nl">alexander@chenjia.nl</a>> escribió:<br><br></div><blockquote type="cite"><div><div style="font-family:Arial; font-size:13px;">Hi, <div><br></div><div><br></div><div><div>Prelude> :t (/)</div><div>(/) :: <b>Fractional</b> a => a -> a -> a</div><div><br></div><div><div>Prelude> :t div</div><div>div :: <b>Integral</b> a => a -> a -> a</div></div><div><br></div><div><br></div><div>Prelude> 6 / length [23,34,45]</div><div>error </div><div><br></div><div>Prelude> 6 / 3</div><div>2.0<br><br>Could somebody explain to me why this is?</div><div><br></div><div>thanks,</div><div><br></div><div>Alexander Chen</div><div><br></div><div><br><div><div style="font-family:Arial; font-size:13px;"><br></div></div></div></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Beginners mailing list</span><br><span><a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a></span><br><span><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a></span><br></div></blockquote></body></html>