Safe Haskell | Safe-Inferred |
---|
D3JS.Type
Contents
- data Chain a b where
- type Var = Text
- type Selector = Text
- data Data1D = Data1D [Double]
- data Data2D = Data2D [(Double, Double)]
- data Selection = Selection
- data SelData a = SelData
- data Transition = Transition
- class Reifiable a where
- class Sel a
- class Sel2 a
- data JSFunc a c b = JSFunc FuncName [JSParam]
- type FuncName = Text
- data JSParam
- data FuncDef
- data NumFunc r where
- NInt :: Int -> NumFunc Int
- NDouble :: Double -> NumFunc Double
- Add :: NumFunc r -> NumFunc r -> NumFunc r
- Subt :: NumFunc r -> NumFunc r -> NumFunc r
- Mult :: NumFunc r -> NumFunc r -> NumFunc r
- Div :: NumFunc r -> NumFunc r -> NumFunc r
- Index :: Int -> NumFunc [r] -> NumFunc r
- Field :: Text -> NumFunc a -> NumFunc r
- NVar :: Var -> NumFunc r
- DataParam :: NumFunc r
- data Var' dat = Var' Var
Types
This represents a method chain with an initial type of a
and a final type of b
Chains are composable by functions in Control.Category module.
See D3JS.Chart for examples.
Instances
Constructors
Selection |
Constructors
SelData |
data Transition Source
Constructors
Transition |
Instances of Reifiable can generate a JavaScript code fragment.
Used just as a tag for typing method chains. Used in D3JS.Func.
Used just as a tag for typing method chains. Used in D3JS.Func.
For internal use
Function call
Parameter for a function call
Function definition used for a callback.
Representation of JavaScript function for a callback.
Constructors
NInt :: Int -> NumFunc Int | |
NDouble :: Double -> NumFunc Double | |
Add :: NumFunc r -> NumFunc r -> NumFunc r | |
Subt :: NumFunc r -> NumFunc r -> NumFunc r | |
Mult :: NumFunc r -> NumFunc r -> NumFunc r | |
Div :: NumFunc r -> NumFunc r -> NumFunc r | |
Index :: Int -> NumFunc [r] -> NumFunc r | |
Field :: Text -> NumFunc a -> NumFunc r | |
NVar :: Var -> NumFunc r | |
DataParam :: NumFunc r |