I can't figure out what this error means, I've never seen if before
the line it is complaining about is the line that contains x -> let
I was using match with before this but it was still giving me the same error.