sdiehl / write-you-a-haskell

Building a modern functional compiler from first principles. (http://dev.stephendiehl.com/fun/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small error in Parsing section

rafalio opened this issue · comments

In the Parsing section, http://dev.stephendiehl.com/fun/parsers.html, you write "Recall that in Haskell in the String type is itself defined to be a list of Char values...", but you write it as a list of String values. That section should have single quotes instead:

"1+2*3"
['1','+', '2', '*', '3']

You are correct, it should be a list of chars.