getLine package:faktory

Read a line from the standard input device (same as hGetLine stdin).
Get the next line, using ASCII LF as the line terminator. This throws an isEOFError exception on end of input, and LineTooLong when the number of bytes gathered is over the limit without a line terminator. The actual line returned can be bigger than the limit specified, provided that the last chunk returned by the underlaying backend contains a LF. Put another way: Only when we need more input and limit is reached that the LineTooLong exception will be raised. An end of file will be considered as a line terminator too, if the line is not empty.