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
* Alternative API for parsing `Text` into `Template` which allows users to
specify if they want brackets to be mandatory. Instead of simple
location this API returns `ParseError` on failure.
* Function `template` throws `ParseError`, instead of calling `error`.
No other function in existing public API has (visibly) changed.
Addresses issues tibbe#13 and tibbe#14
Currently template
will call an
errorif the template string is malformed, for error-handling there's
templateSafethat returns an
Either`.I think it would be nicer if the library defined an error type (e.g.
TemplateError
) andtemplate
would throw that instead of anerror
.The text was updated successfully, but these errors were encountered: