So I am trying to implement a maximum function but for some reason I am getting a parse error on the last line "mymax x:y:ys = ..... " . What is the reason for that error? Thanks!
mymax :: Ord a=>[a]->Maybe a
mymax [] = Nothing
mymax [x] = Just x
mymax x:y:xs = if (x < y)
then mymax(y:xs)
else mymax(x:xs)