For a uni assignment I need to write parsers in Haskell, right now I have the following parser i think is correct:
parseYear :: Parser Char Year
parseYear = Year <$> ...
I want to check if it works, for example with > parseYear "2004"
in ghci. this command is not valid, but i there another way to quickly check if a parser I'm writing is correct?
Edit:
Example, for the parser:nesting :: Parser Char Int
, this would be what i want