peek package:bytesmith

Match any byte, to perform lookahead. Returns Nothing if end of input has been reached. Does not consume any input. Note: Because this parser does not fail, do not use it with combinators such as many, because such as many, because such parsers loop until a failure occurs. Careless use will thus result in an infinite loop.
Examine the next byte without consuming it, interpret it as an ASCII-encoded character. This fails if the byte is above 0x7F or if the end of input has been reached.
Match any character, to perform lookahead. Returns Nothing if end of input has been reached. Does not consume any input. Note: Because this parser does not fail, do not use it with combinators such as many, because such as many, because such parsers loop until a failure occurs. Careless use will thus result in an infinite loop.
Match any byte, to perform lookahead. Does not consume any input, but will fail if end of input has been reached.
Return all remaining bytes in the input without consuming them.
Match any byte, to perform lookahead. Does not consume any input, but will fail if end of input has been reached.