indentation
| Description | Number of spaces per indentation step |
|---|---|
| Type | Int |
| Default | 4 |
| Ormolu | 2 |
| Since | v0.1.0.0 |
Examples
login :: IO ()
login = do
name <- getLine
if name == "admin"
then putStrLn "Logged in!"
else do
putStrLn "Incorrect username"
login
login :: IO ()
login = do
name <- getLine
if name == "admin"
then putStrLn "Logged in!"
else do
putStrLn "Incorrect username"
login
For more examples, see the test files.