2
Variable not in scope

For every piece of code that I wrote, I get ''variable not in scope''. (for example :
length1 :: [a] -> Int
length1 l | l==[] =0
| otherwise = 1 + length1 tail l
)
some of the other solutions i tried are written by my teaher.

You are viewing a single comment. View All
1

@ThatSmart Thanks so much for your help! what confused me the most is that similar code used to work a few days ago and also my very experienced teacher said it was fine. I'll try to figure out how to link it.