Re:Reading Simple Haskell
by dragonwriter on Sunday December 10, 2017 @12:20AM
(#15890079)
> Really? How do you put multiple "import" statements on a single line in Haskell?
With semicolons and curly braces; Haskell's newline/indent syntax is merely an aesthetic substitute for those.
Ocaml uses whitespace (including newlines) for exactly one reason: token separation. Indentation and line breaks are arbitrary, and can be replaced with spaces in any sequence of Ocaml statements. The same cannot be said for Haskell.