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 Source #
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) Source # | |
paramNames :: ParamNames a -> [String] Source #
Coverts a ParamNames
list to an ordinary list of strings.
noNames :: ParamNames () Source #
An empty ParamNames
list.
fstName :: String -> ParamNames (String -> ()) Source #
Produces a ParamNames
list with a single name.
plusName :: ParamNames a -> String -> ParamNames (String -> a) Source #
Adds one parameter name to a ParamNames
list.
anonParams :: AnonParams a => ParamNames a Source #
Polymorphically produces ParamNames
lists of any length filled with
blank parameter names.
class AnonParams a Source #
Helper class for generating anonymous parameter lists.
Minimal complete definition
anonParams_
Instances
AnonParams () Source # | |
AnonParams b => AnonParams (String -> b) Source # | |