3 ms·
In the Haskell example in the article, the `do`, braces, semicolon and `return ()` are not necessary: main = do { putStrLn "Hello, World!" ; return ()
by garethrowlands 5y ago
In the Haskell example in the article, the `do`, braces, semicolon and `return ()` are not necessary:
main = do { putStrLn "Hello, World!" ; return () }
The code should read like this instead (and I think the linter would suggest this):
main = putStrLn "Hello, World"