| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.EDE.Internal.Filters
Contents
- 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
defaultFilters :: HashMap Text Binding
Boolean
Equality
Relational
Numeric
Fractional
Textual
takeWord:: Text -> TextdropWord:: Text -> TextlowerHead:: Text -> TextupperHead:: Text -> TexttoTitle:: Text -> TexttoCamel:: Text -> TexttoPascal:: Text -> TexttoSnake:: Text -> TexttoSpinal:: Text -> TexttoTrain:: Text -> TexttoLower:: Text -> TexttoUpper:: Text -> TexttoOrdinal:: Number -> Text
See: text-manipulate
Collection
Polymorphic
show:: a -> Text
Constructing filters
data Binding
A HOAS representation of (possibly partially applied) values in the environment.
Classes
class Quote a where
class Unquote a where
Restricted quoters
qpoly2 :: Quote a => (Value -> Value -> a) -> Binding
Quote a binary function which takes the most general binding value.
qcol1 :: Quote a => (Text -> a) -> (Object -> a) -> (Array -> a) -> Binding
Quote a comprehensive set of unary functions to create a binding that supports all collection types.
Errors
unexpected :: String -> String -> Result b