plclub / hs-to-coq

Convert Haskell source code to Coq source code.
https://hs-to-coq.readthedocs.io
MIT License
78 stars 8 forks source link

Read edits in a locale-independent manner #203

Open Lysxia opened 2 years ago

Lysxia commented 2 years ago

Issue mentioned on Zulip.

edits are currently read with text's readFile which seems to depend on the locale (like base). And by Murphy's law of locales it is going to be the wrong one for somebody. To make it more robust, we should just require UTF-8, by reading a bytestring and decoding it explicitly. And double check that the edits syntax handles \r for Windows.