We've run into a bit of confusion (here KSF-Media/tuttifrutti#12) with identifier parsing in our log module when using template to support variable interpolation.
While the actual issue comes from the lack of documentation in our library. I think we could eliminate such confusion by adding a "strict" mode in which, $foo won't be allowed, only ${foo}. It will also eliminate the need to escape $ with $$.
Such functionality could be added in backwards compatible way by introducing a templateStrict :: Text -> Template that has such behavior.
We've run into a bit of confusion (here KSF-Media/tuttifrutti#12) with identifier parsing in our log module when using template to support variable interpolation.
While the actual issue comes from the lack of documentation in our library. I think we could eliminate such confusion by adding a "strict" mode in which,
$foowon't be allowed, only ${foo}. It will also eliminate the need to escape$with$$.Such functionality could be added in backwards compatible way by introducing a
templateStrict :: Text -> Templatethat has such behavior.