title: Writing a parser from scratch in Haskell
body: <p>Is there any good tutorial for writing a parser for a given grammar in Haskell from scratch?</p>
  
  <p>I found:  </p>
  
  <ol>
  <li><p><a href="http://www.haskell.org/haskellwiki/Parsing_expressions_and_statements" rel="noreferrer">parsing expressions and statements (HaskellWiki)</a> </p></li>
  <li><p><a href="http://www.haskell.org/haskellwiki/Parsing_a_simple_imperative_language" rel="noreferrer">Parsing a simple imperative language (HaskellWiki)</a></p></li>
  <li><p><a href="http://book.realworldhaskell.org/read/using-parsec.html" rel="noreferrer">Using parsec (Real World Haskell)</a></p></li>
  </ol>
  
  <p>but all of these use the parsec library, and while that may be interesting for industrial applications I'm specifically looking for examples that are 'bottom up' without the use of sophisticated libraries.</p>
  
  <p>The only one I found which uses 'basic' Haskell is this: <a href="http://fileadmin.cs.lth.se/cs/Education/EDAN40/assignment4/parser.pdf" rel="noreferrer">Parsing with Haskell</a>
  which uses some very foreign syntax (it's very hard to distinguish whats part of the program or whats only 'pseudocode') and there's no explicit grammar definition.</p>
  
  <p>Any suggestions are highly appreciated!</p>