News for hackers. Stuff that matters.
Re:Reading Simple Haskell by gmfawcett on Saturday December 09, 2017 @02:30PM (#15887571)
Ocaml isn't whitespace sensitive (other than in the obvious sense, i.e., to separate tokens). You can write a whole module (or series of modules) on a single line if you want to.
Re:Reading Simple Haskell by marcosdumay on Saturday December 09, 2017 @06:20PM (#15888761)
You can write a whole module in a single line of Haskell too. That's not the correct thing to test.
Re:Reading Simple Haskell by gmfawcett on Sunday December 10, 2017 @12:01AM (#15890021)
Really? How do you put multiple "import" statements on a single line in Haskell? Or a function signature followed by its definition?

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.

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.