<div dir="ltr">On Wed, Jul 20, 2011 at 11:30, Roelof Wobben <span dir="ltr"><<a href="mailto:rwobben@hotmail.com">rwobben@hotmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">replicate :: Int -> a -> [a]<br>replicate a xs = [xs | x' <= a <--xs]<br><br>replicate 3 True<br></div></div></blockquote><div><br></div><div>That last line is fine at a GHCi prompt but not in a program. (Files loaded by ghci are not scripts! They are treated the same way as program files fed to ghc or runhaskell.)</div>
<div><br></div></div>-- <br>brandon s allbery <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available) (412) 475-9364 vm/sms<br>
<br>
</div>