Safe Haskell | None |
---|---|
Language | GHC2024 |
Synopsis
- interpolate' :: forall {k} (b :: k) m. (MonadIO m, MustacheBackend b, InterpreterBackendSupport b) => InterpolationMode -> InterpreterInstance -> Proxy b -> SourceLocation -> Text -> SqlTemplateVariables -> m (Either InterpolationError Text)
- interpolate :: MonadIO m => InterpolationMode -> SourceLocation -> Text -> SqlTemplateVariables -> m (Either InterpolationError Text)
- initInterpreterForMustache :: forall {k} m (b :: k). (MonadIO m, InterpreterBackendSupport b) => Proxy b -> LogEnv -> m InterpreterInstance
Documentation
interpolate' :: forall {k} (b :: k) m. (MonadIO m, MustacheBackend b, InterpreterBackendSupport b) => InterpolationMode -> InterpreterInstance -> Proxy b -> SourceLocation -> Text -> SqlTemplateVariables -> m (Either InterpolationError Text) #
:: MonadIO m | |
=> InterpolationMode | Level of interpolation engine strictness |
-> SourceLocation | Location of the template (important for error reporting) |
-> Text | Text of the template |
-> SqlTemplateVariables | List of variables to use for a substitution process |
-> m (Either InterpolationError Text) |
Substitutes variables in mustache template. Does not supports Haskell function interpolation.
initInterpreterForMustache :: forall {k} m (b :: k). (MonadIO m, InterpreterBackendSupport b) => Proxy b -> LogEnv -> m InterpreterInstance #
Creates an instance of the Haskell interpreter to use for Mustache templating purposes.