Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Module of reusable functions for Kriti transforms.
NOTE: This defines an alternative runKritiWith
that includes the basicFunctions by default.
You should probably invoke Kriti through this module rather than directly in order to
make updating the functions available only require touching this module.
TODO: This should be added to the documentation and referenced in (for-example) REST Connectors once the documentation refactor project is complete.
Synopsis
- runKriti :: Text -> [(Text, Value)] -> Either SerializedError Value
- runKritiWith :: Text -> [(Text, Value)] -> HashMap Text KritiFunc -> Either SerializedError Value
- basicFunctions :: HashMap Text KritiFunc
- environmentFunctions :: Environment -> HashMap Text KritiFunc
- sessionFunctions :: Maybe SessionVariables -> HashMap Text KritiFunc
Documentation
runKriti :: Text -> [(Text, Value)] -> Either SerializedError Value Source #
runKriti
attaches the basicFunctions by default
NOTE: The error type is SerializedError due to KritiError not currently being exported
runKritiWith :: Text -> [(Text, Value)] -> HashMap Text KritiFunc -> Either SerializedError Value Source #
runKritiWith
attaches the basicFunctions by default.
basicFunctions :: HashMap Text KritiFunc Source #
Re-Export of the Kriti stdlib
environmentFunctions :: Environment -> HashMap Text KritiFunc Source #
Functions that interact with environment variables
sessionFunctions :: Maybe SessionVariables -> HashMap Text KritiFunc Source #
Functions that interact with HGE session during requests