sdiehl / write-you-a-haskell

Building a modern functional compiler from first principles. (http://dev.stephendiehl.com/fun/)
MIT License
3.34k stars 256 forks source link

Small change in token parser. #105

Open tommy-mor opened 4 years ago

tommy-mor commented 4 years ago

I'm new to haskell and following this article/tutorial/book. It's very nice thanks for making it! In my version, adding this change makes sense to me and allows expressions like 4 * 12 where the current version only allows 4* 12 and 4*12 which I find a little strange.