3 ms·
I've actually never seen production code with braces or semicolons. The only place it's semi-common is when people write complicated expressions and need to put
by wyager 11y ago
I've actually never seen production code with braces or semicolons. The only place it's semi-common is when people write complicated expressions and need to put them on one line for the REPL (GHCi).
- arnsholt 11y agoI think another use-case for non-layout version is generated code. If you happen to generate Haskell code, it's easier to keep the syntax correct with the explicit notation rather than the implicit whitespace version.