Module
Heterogenous.Mapping
- Package
- purescript-heterogenous
- Repository
- natefaubion/purescript-heterogenous
#MappingWithIndex Source
class MappingWithIndex f i a b | f a -> b, f -> i where
Members
mappingWithIndex :: f -> i -> a -> b
Instances
(Mapping f a b) => MappingWithIndex (ConstMapping f) ix a b
#ConstMapping Source
newtype ConstMapping f
Constructors
Instances
(Mapping f a b) => MappingWithIndex (ConstMapping f) ix a b
#HMapWithIndex Source
class HMapWithIndex f a b | a -> f b where
Members
hmapWithIndex :: f -> a -> b
Instances
(FunctorWithIndex i f, MappingWithIndex fn i a b) => HMapWithIndex fn (App f a) (App f b)
(RowToList rin rl, MapRecordWithIndex rl fn rin rout) => HMapWithIndex fn (Record rin) (Record rout)
#MapRecordWithIndex Source
class MapRecordWithIndex (xs :: RowList) f (as :: Row Type) (bs :: Row Type) | xs -> f as bs where
Members
mapRecordWithIndexBuilder :: RLProxy xs -> f -> Builder (Record as) (Record bs)
Instances
(IsSymbol sym, MappingWithIndex f (SProxy sym) a b, MapRecordWithIndex rest f as bs', Cons sym a bx bs', Cons sym b bx bs) => MapRecordWithIndex (Cons sym a rest) f as bs
MapRecordWithIndex Nil fn as as