4 ms·
> The type of the parameter is IO String. No, the type of the parameter is String. IO String is the type of the expression that gets that parameter when execut
by quchen 13y ago
> The type of the parameter is IO String.
No, the type of the parameter is String. IO String is the type of the expression that gets that parameter when executed. There's a popular quote by shachaf, "getLine :: IO String contains a String in the same way that /bin/ls contains a list of files" that illustrates this nicely.