I am still in an imperative way of thinking. In this example here; how would I call "putStrLn" and then set the function with a value. Eg:<br><br>aa :: String -> IO ()<br>aa instr = do<br> putStrLn "abc"
<br> putStrLn "abc" <br> return "123"<br><br>--- The error I am getting.<br><br> Couldn't match expected type `()' against inferred type `[Char]'<br> In the first argument of `return', namely `"123"'
<br> In the expression: return "123"<br> In the expression:<br> do putStrLn "abc"<br> putStrLn "abc"<br> return "123"<br>