Telling a kid in college (I was a sophomore when I was writing Haskell) that he deserves to lose 10% over something like that is crazy. The obvious to us, many years into programming professionally, is not always obvious to newer folks.
Unfortunately, grades now also serve as some poor measure of intelligence or competency in many people's minds.
If the project was the entire grade, then yes that's a bit much. But if we're talking about 1 of 10 assignments, then 10% really isn't that much.
I've had plenty of assignments were the granularity was just something like excellent, good, pass, fail.