2 ms·
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 (inc
by gmfawcett 9y ago
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.
- dragonwriter 9y ago> 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.