I was wondering if there is a way to get the remaining input from Parsec after it stops parsing, or if it was a successful or unsuccessful syntax, maybe this signature:
parseRemaining :: Stream s Identity t => Parsec s () a -> SourceName -> s -> (s, Either ParseError a)
Where we get instead of Either ParseError a , we additionally get the remaining Stream s
source share