effekt-lang / effekt

A language with lexical effect handlers and lightweight effect polymorphism
https://effekt-lang.org
MIT License
334 stars 24 forks source link

Use proper character literals in the wordcount example #632

Closed jiribenes closed 3 weeks ago

jiribenes commented 1 month ago

In the wordcount test/example, use real character literals '\n' and '\t' after #622 gets merged: https://github.com/effekt-lang/effekt/blob/7ce8ab19fbe5d38e4cefc1698a1132d96329cd76/examples/stdlib/io/filesystem/wordcount.effekt#L12-L16

jiribenes commented 3 weeks ago

cc @phischu: This also relates to your #527 streaming PR, as since #622, we have nice character literals so we don't need this magical c.toInt == 10 everywhere