title: Parsec not parsing newline character
body: <p>I have the following piece of code:</p>
  
  <pre><code>import Text.ParserCombinators.Parsec
  import Control.Applicative hiding ((&lt;|&gt;))
  import Control.Monad
  
  data Test = Test Integer Integer deriving Show
  
  integer :: Parser Integer
  integer = rd &lt;$&gt; many1 digit
      where rd = read :: String -&gt; Integer
  
  testParser :: Parser Test
  testParser = do
    a &lt;- integer
    char ','
    b &lt;- integer
    eol
    return $ Test a b
  
  eol :: Parser Char
  eol = char '\n'
  
  main = forever $ do putStrLn "Enter the value you need to parse: "
                      input &lt;- getLine
                      parseTest testParser input
  </code></pre>
  
  <p>But when I actually try to parse my value in <code>ghci</code>, it doesn't work.</p>
  
  <pre><code>ghci &gt; main
  Enter the value you need to parse: 
  34,343\n
  parse error at (line 1, column 7):
  unexpected "\\"
  expecting digit or "\n"
  </code></pre>
  
  <p>Any ideas on what I'm missing here ?</p>