|
| Data.Has | | Portability | unknown | | Stability | experimental | | Maintainer | nonowarn@gmail.com |
|
|
|
|
|
| Description |
| Entiry based records.
|
|
| Synopsis |
|
|
|
|
| Has class
|
|
|
Same as Knows lab (TypeOf lab) s, Useful on writing type
signitures.
Holds e == (lab .^ (lab ^= e $ s))
where lab :: lab; e :: TypeOf lab; s :: s
| | Instances | |
|
|
| Rows in records
|
|
|
| Field a is a type list which contains only one element of
a. And every field in the records should be this type.
|
|
|
Concatenates between Fields or records. Records are
concatenated rows. For example, Following expressions are
valid.
-- Concatenation of rows (i.e. record)
field "string" & field True
-- Concatenation of records
(field 'c' & field ()) & (field False & field "string")
-- ... And concatenations between a field and a record
field () & (field False & field "string")
(field 'c' & field ()) & field False
|
|
|
| Represents concatenated rows or records.
|
|
|
|
| Creates a Field of a.
|
|
| Update and Lookup values from records
|
|
|
| Strict version of injl
|
|
|
| Strict version of prjl
|
|
|
| Strict version of updl
|
|
|
| Injects and Projects a labelled values into records.
| | | Methods | | injl :: lab -> e -> s -> s | Source |
| | Injects a labelled value
| | | | Projects a labelled value
|
| | Instances | |
|
|
| updl :: Knows lab b a => lab -> (b -> b) -> a -> a | Source |
|
| Updates a labelled value
|
|
| Labelled values
|
|
|
| Represents labelled value.
| Instances | |
|
|
|
| Represents labelled field.
|
|
|
| Makes a labelled field.
|
|
| Defining labels
|
|
|
| TypeOf a should indicate a type labelled by a
|
|
|
|
FieldOf a == a :> TypeOf a
|
|
|
|
| Creates a field labelled by a
|
|
| Make parsing error messages easier
|
|
|
| Cons a type onto type-list.
| Instances | |
|
|
|
| The empty type-list.
| Instances | |
|
|
|
Provides injection and projection into type lists.
Holds e == prj (inj e s) for all s and e.
| | Instances | |
|
|
| Produced by Haddock version 2.6.1 |