Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class RecFromTuple r where
- type IsoRecTuple r :: Type
- recFromTuple :: IsoRecTuple r -> r
Documentation
class RecFromTuple r where Source #
Building a record from tuple.
It differs from similar typeclass in FromTuple
module in that
it allows type inference outside-in - knowing desired Rec
you know which
tuple should be provided - this improves error messages when constructing
concrete Rec
objects.
type IsoRecTuple r :: Type Source #
recFromTuple :: IsoRecTuple r -> r Source #
Instances
RecFromTuple (Rec f ('[] :: [u])) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[]) Source # recFromTuple :: IsoRecTuple (Rec f '[]) -> Rec f '[] Source # | |
RecFromTuple (Rec f '[x]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x]) Source # recFromTuple :: IsoRecTuple (Rec f '[x]) -> Rec f '[x] Source # | |
RecFromTuple (Rec f '[x1, x2]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2]) -> Rec f '[x1, x2] Source # | |
RecFromTuple (Rec f '[x1, x2, x3]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3]) -> Rec f '[x1, x2, x3] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4]) -> Rec f '[x1, x2, x3, x4] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5]) -> Rec f '[x1, x2, x3, x4, x5] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6]) -> Rec f '[x1, x2, x3, x4, x5, x6] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24] Source # | |
RecFromTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25]) Source # | |
Defined in Util.TypeTuple.Instances type IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25]) Source # recFromTuple :: IsoRecTuple (Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25]) -> Rec f '[x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25] Source # |