4 ms·
I didn't think Haskell had significant whitespace; it doesn't have blocks really, and nested expressions can be wrapped in parentheses, right?
by _bxg1 7y ago
I didn't think Haskell had significant whitespace; it doesn't have blocks really, and nested expressions can be wrapped in parentheses, right?
- jeremyjh 7y agoWhitespace is significant in Haskell. In do notation and other forms, you have blocks. You can actually use braces and semi-colons instead but I've never seen that except in some very short one-liners. https://en.wikibooks.org/wiki/Haskell/Indentation https://en.wikibooks.org/wiki/Haskell/Indentation