getContents package:base-compat

The getContents operation returns all user input as a single string, which is read lazily as it is needed (same as hGetContents stdin).
The getContents' operation returns all user input as a single string, which is fully read before being returned (same as hGetContents' stdin).
The hGetContents' operation reads all input on the given handle before returning it as a String and closing the handle.