Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Graphics.QML.Objects.ParamNames
Description
Parameter Name Lists
- data ParamNames a
- paramNames :: ParamNames a -> [String]
- noNames :: ParamNames ()
- fstName :: String -> ParamNames (String -> ())
- plusName :: ParamNames a -> String -> ParamNames (String -> a)
- anonParams :: AnonParams a => ParamNames a
- class AnonParams a
Documentation
data ParamNames a
Represents a list of parameter names. The number of names in the list is
statically encoded using the length of the function type held in the type
parameter a
.
Instances
Show (ParamNames a) |
paramNames :: ParamNames a -> [String]
Coverts a ParamNames
list to an ordinary list of strings.
noNames :: ParamNames ()
An empty ParamNames
list.
fstName :: String -> ParamNames (String -> ())
Produces a ParamNames
list with a single name.
plusName :: ParamNames a -> String -> ParamNames (String -> a)
Adds one parameter name to a ParamNames
list.
anonParams :: AnonParams a => ParamNames a
Polymorphically produces ParamNames
lists of any length filled with
blank parameter names.
class AnonParams a
Helper class for generating anonymous parameter lists.
Minimal complete definition
anonParams_
Instances
AnonParams () | |
AnonParams b => AnonParams (String -> b) |