3 ms·
Happily you can use curly braces in Haskell if you really want to. You have the choice between: do something 10 b <- somethingElse something
by tikhonj 14y ago
Happily you can use curly braces in Haskell if you really want to. You have the choice between:
do something 10
b <- somethingElse
something b
and
do {
something 10;
b <- somethingElse;
something b
}
I've only ever seen the latter style very rarely though. I think it's also good for generating code so that you don't have to worry about whitespace and lining your generated code up properly.