
20 Jul
2011
20 Jul
'11
3:47 p.m.
On Wed, Jul 20, 2011 at 11:30, Roelof Wobben
replicate :: Int -> a -> [a] replicate a xs = [xs | x' <= a <--xs]
replicate 3 True
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.) -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms