pRestOfLine

Returns a Parser that consumes all characters up to (but not including) the next line ending or end of input, succeeding with the matched String.

The line ending itself is not consumed. An empty string is returned when the current position is already at a line ending or end of input.

Return

a Parser that always succeeds with the rest of the current line.

See also