Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuasiQuotes for ICU #163

Open
samhh opened this issue Aug 8, 2022 · 1 comment
Open

QuasiQuotes for ICU #163

samhh opened this issue Aug 8, 2022 · 1 comment

Comments

@samhh
Copy link
Contributor

samhh commented Aug 8, 2022

This could be something fun to explore: https://serokell.io/blog/parser-combinators-in-haskell#bonus%3A-quasi-quotations

[icu|Hello {name}|]

Might be helpful for testing stuff like flattening where ideally we could supply a known valid message without risk of it failing the test due to a bad parse (where this moves the error in that case up a layer into GHC).

@samhh
Copy link
Contributor Author

samhh commented Aug 9, 2022

Could also consider an eDSL via free monads? More ergonomic with do notation than patching strings together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant