intlc icon indicating copy to clipboard operation
intlc copied to clipboard

QuasiQuotes for ICU

Open samhh opened this issue 3 years ago • 1 comments

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 avatar Aug 08 '22 11:08 samhh

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

samhh avatar Aug 09 '22 11:08 samhh