sdiehl / write-you-a-haskell

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

Parsers - Lexer: using `emptyDef`? #6

Closed NicolasT closed 9 years ago

NicolasT commented 9 years ago

In the Parsers chapter, under Lexer, lexer is defined as Tok.makeTokenParser emptyDef. Shouldn't this be Tok.makeTokenParser langDef, using the definition of langDef given above it?

sdiehl commented 9 years ago

Fixed in 065e55d.