| Copyright | (c) Marcin Mrotek, 2015 |
|---|---|
| License | BSD3 |
| Maintainer | marcin.jan.mrotek@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
| Extensions |
|
Graphics.QML.DataModel.Internal.Generic.Set
Description
Setup the column names of a HaskellModel.
- class SetupColumns t where
- setupColumns :: HmDelegateHandle -> proxy t -> IO ()
- class GSetupColumns f where
- gSetupColumns :: HmDelegateHandle -> proxy (f a) -> IO ()
- class GSetupColumnIx f where
- gSetupColumnIx :: HmDelegateHandle -> Int -> proxy (f a) -> IO ()
Documentation
class SetupColumns t where Source
A class of types that can provide a template to setup the QT HaskellModel. A generic implementation is provided for all proxyle constructor types.
Minimal complete definition
Nothing
Methods
setupColumns :: HmDelegateHandle -> proxy t -> IO () Source
class GSetupColumns f where Source
A generic implementation for SetupColumns.
Methods
gSetupColumns :: HmDelegateHandle -> proxy (f a) -> IO () Source
Instances
| GSetupColumns * * f => GSetupColumns * * (M1 D t f) Source | Meta information for a whole datatype is skipped, and the recursion proceeds further down. |
| GSetupColumnIx * * f => GSetupColumns * * (M1 C t f) Source | Meta information for a constructor is skipped, and |
class GSetupColumnIx f where Source
A helper class for the generic implementation for SetupColumns, starts its work at a particular index.
Methods
gSetupColumnIx :: HmDelegateHandle -> Int -> proxy (f a) -> IO () Source
Instances
| (GCountFields * * a, GCountFields * * b, GSetupColumnIx * * a, GSetupColumnIx * * b) => GSetupColumnIx * * ((:*:) a b) Source | Setups both terms of the product. |
| Selector t => GSetupColumnIx * * (M1 S t f) Source | A model role name is added accoring to the record selector's name. |