template
template copied to clipboard
Simple string substitution for Haskell.
With text > 2, this library works well (tested with 0.2.0.10). Could you update the package with loosened upper bound on text? Thanks.
Currently template` will call an `error` if the template string is malformed, for error-handling there's `templateSafe` that returns an `Either`. I think it would be nicer if the library defined...
We've run into a bit of confusion (here https://github.com/KSF-Media/tuttifrutti/issues/12) with identifier parsing in our log module when using template to support variable interpolation. While the actual issue comes from the...
Any chance you would be open to modifying this package to support $1, $2, etc? Those kinds of substitutions are useful when you have an array of "parameters" to be...
I extended your example to a very simple command-line [tool](https://github.com/michelk/tmpl). Maybe others find it helpful, too.