You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really handy if you could interpolate values in the yamlQQ quasiquoter using #{...} notation, just like how aeson-qq provides this for JSON.
The text was updated successfully, but these errors were encountered:
Just thinking out loud. I guess the two biggest issues would be
Parsing embedded Haskell in aeson-qq works via the haskell-src-meta package, which pulls in significant dependencies such as haskell-src-exts. Installing haskell-src-meta takes 3 extra minutes on my machine after installing yaml.
aeson-qq has the nice property that # or $ are always invalid JSON in that context, and therefore function unambiguously. In YAML, there's isn't a reliable choice of characters that would violate the syntax: in particular, the # in an unquoted scalar introduces a comment, and the $ can just occur normally in a mapping key.
It seems like an external library would be better suited to implement this functionality.
It would be really handy if you could interpolate values in the
yamlQQ
quasiquoter using#{...}
notation, just like how aeson-qq provides this for JSON.The text was updated successfully, but these errors were encountered: