3 ms·
> I specified text: 2.1 (a number) instead of text: '2.1' (a string) - causing Stack to complain vigorously lol, not even Haskell can escape YAML being YAML.
by trashburger 3y ago
> I specified text: 2.1 (a number) instead of text: '2.1' (a string) - causing Stack to complain vigorously
lol, not even Haskell can escape YAML being YAML.
- ReleaseCandidat 3y agoOf all the complaints about YAML, I never understood this one, which is actually the correct way to handle it. Of course N.M (without some kind of quotes) is a floating point number and not a string!? The other way around would be _really_ strange.
- javcasas 3y agoOn a general case, yes. But we are talking about Stack, a system for managing software dependencies. When was the last time you put numbers intended to be real numbers in a dependency declaration file? In different words, when was the last time you added, subtracted, multiplied or divided versions? Version numbers are always strings with special comparison semantics.
- ReleaseCandidat 3y agoI'm sorry, but I fail to understand the point you are trying to make.