Name: Anonymous 2009-01-27 20:20
Please help with my Haskell code. It is supposed to return the maximum element in a list but it doesn't work
lol :: [a] -> Nothing | a
lol [] = Nothing
lol [x] = x
lol (x:xs) = if x > lol xs then x else lol xs