do (sequencing)
Sequences multiple IO operations.
Syntax
main = do\n islem1\n islem2
Description
The do block runs IO operations in sequence. Lines must have the same indentation. Intermediate values are bound with let.
Example
Loading editor…
Expected output
Hello Alex 5
When to use?
Multiple printing/reading operations.