
My code is
--1)Define a function bLine to give a line of horizontal #s
import Pictures
sb, sw :: Picture
bLine :: Int -> Picture
bLine n )
|n==0 = )
|n>0 = `sideBySide` sb (bLine (n-1))
and when running Hugs, it says that there is a

This looks like a syntax error to me. On Tue, 28 Oct 2003, Rachel Reid wrote:
bLine n )
What is the close parenthesis for (or is this a character encoding issue?)? Definitely shouldn't be there...I'm guessing it should be something like 'k' or the like.
|n==0 = )
Same comment.
|n>0 = `sideBySide` sb (bLine (n-1))
The `foo` notation is used to make a function (in your case sideBySide) into an infix function, so you can write "x `foo` y". but in your case you're not using it infix, so you don't want the ``s. HTH, - Hal -- Hal Daume III | hdaume@isi.edu "Arrest this man, he talks in maths." | www.isi.edu/~hdaume
participants (2)
-
Hal Daume III
-
Rachel Reid