Safe Haskell | None |
---|---|
Language | Haskell2010 |
A default set of prelude-like filters and the means to construct your own.
Please be aware that some of the defaultFilters
are assumed to be present
(for example during loop unrolling and assignment of else branches via empty
).
It's recommended you supplement the default filters rather than replacing them completely. (But hey, it's your call!)
- defaultFilters :: HashMap Text Binding
- data Binding
- class Quote a where
- class Unquote a where
- qapply :: Binding -> Binding -> Result Binding
- qpoly2 :: Quote a => (Value -> Value -> a) -> Binding
- qnum1 :: (Scientific -> Scientific) -> Binding
- qnum2 :: Quote a => (Scientific -> Scientific -> a) -> Binding
- qcol1 :: Quote a => (Text -> a) -> (Object -> a) -> (Array -> a) -> Binding
- unexpected :: String -> String -> Result b
- typeOf :: Value -> String
Prelude
Boolean
Equality
Relational
Numeric
Fractional
Textual
takeWord
:: Text -> Text
dropWord
:: Text -> Text
lowerHead
:: Text -> Text
upperHead
:: Text -> Text
toTitle
:: Text -> Text
toCamel
:: Text -> Text
toPascal
:: Text -> Text
toSnake
:: Text -> Text
toSpinal
:: Text -> Text
toTrain
:: Text -> Text
toLower
:: Text -> Text
toUpper
:: Text -> Text
toOrdinal
:: Number -> Text
See: text-manipulate
Collection
Polymorphic
show
:: a -> Text
Constructing filters
A HOAS representation of (possibly partially applied) values in the environment.
Classes
Restricted quoters
qpoly2 :: Quote a => (Value -> Value -> a) -> Binding Source
Quote a binary function which takes the most general binding value.
qnum1 :: (Scientific -> Scientific) -> Binding Source
Quote an unary numeric function.
qnum2 :: Quote a => (Scientific -> Scientific -> a) -> Binding Source
Quote a binary numeric function.
qcol1 :: Quote a => (Text -> a) -> (Object -> a) -> (Array -> a) -> Binding Source
Quote a comprehensive set of unary functions to create a binding that supports all collection types.
Errors
unexpected :: String -> String -> Result b Source