pub fn newline<Input>() -> impl Parser<Input, Output = char, PartialState = ()> where
    Input: Stream<Token = char>,
    Input::Error: ParseError<Input::Token, Input::Range, Input::Position>, 
Expand description

Parses a newline character ('\n').

use combine::Parser;
use combine::parser::char::newline;
assert_eq!(newline().parse("\n"), Ok(('\n', "")));
assert!(newline().parse("\r").is_err());