Module
Data.Struct
- Package
- purescript-struct
- Repository
- matthew-hilty/purescript-struct
Re-exports from Data.Struct.Compare
Re-exports from Data.Struct.Const
#RConst Source
Re-exports from Data.Struct.Contract
#GContract Source
class GContract (p :: Type -> Type -> Type) (f :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (l2 :: RowList) (r2 :: Row Type) | l0 -> r0, l1 -> r1, l2 -> r2, l0 l1 -> l2 where
Members
gContract :: forall g. RLProxying g l0 => RLProxying g l1 => RLProxying g l2 => g l0 -> g l1 -> g l2 -> p (f r1) (f r2)
Instances
(Category p) => GContract p f Nil () Nil () Nil ()
(Category p) => GContract p f Nil () (Cons s1 v1 l1') unifyR (Cons s2 v2 l2') unifyR
(RConst p f Nil () (Cons s v l') r, REmpty f) => GContract p f (Cons s v l') r (Cons s v l') r Nil ()
(Cons s0 v0 r2' r2, GContract p f l0' r0' (Cons s1 v1 l1') r1 (Cons s0 v0 (Cons s2' v2' l2'')) r2, Lacks s0 r2', RDelete p f SProxy s0 (Cons s0 v0 (Cons s2' v2' l2'')) r2 (Cons s2' v2' l2'') r2', Semigroupoid p) => GContract p f (Cons s0 v0 l0') r0 (Cons s1 v1 l1') r1 (Cons s2' v2' l2'') r2'
#RContract Source
Re-exports from Data.Struct.ContractOrAlt
#RContractOrAlt Source
class RContractOrAlt (p :: Type -> Type -> Type) (f :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) | l0 -> r0, l1 -> r1 where
Members
rcontractOrAlt :: forall r h g. Alternative h => RLProxying g l0 => RLProxying g l1 => Union r1 r r0 => g l0 -> g l1 -> p (f r0) (h (f r1))
Instances
(Keys l1, RowToList r1 l1, ListToRow l1 r1) => RContractOrAlt Function Record l0 r0 l1 r1
(Contractable r0 r1) => RContractOrAlt Function Variant l0 r0 l1 r1
(RProxying f r1) => RContractOrAlt Function f l0 r0 l1 r1
#contractOrAlt Source
contractOrAlt :: forall r1 r0 r p l1 l0 h f. Alternative h => Keys l1 => RContractOrAlt p f l0 r0 l1 r1 => RowToList r0 l0 => RowToList r1 l1 => Union r1 r r0 => p (f r0) (h (f r1))
Re-exports from Data.Struct.Delete
#RDelete Source
class RDelete (p :: Type -> Type -> Type) (f :: Row Type -> Type) (g :: Symbol -> Type) (s :: Symbol) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) | l0 -> r0, l1 -> r1 where
Members
rdelete :: forall v h. Cons s v r1 r0 => Lacks s r1 => RLProxying h l0 => RLProxying h l1 => h l0 -> h l1 -> g s -> p (f r0) (f r1)
Instances
Re-exports from Data.Struct.DisjointUnion
#RDisjointUnion Source
class RDisjointUnion (p :: Type -> Type -> Type) (f :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (l2 :: RowList) (r2 :: Row Type) | l0 -> r0, l1 -> r1, l2 -> r2 where
Members
rdisjointUnion :: forall g. Nub r2 r2 => RLProxying g l0 => RLProxying g l1 => RLProxying g l2 => Union r0 r1 r2 => g l0 -> g l1 -> g l2 -> f r0 -> p (f r1) (f r2)
Instances
RDisjointUnion Builder Record l0 r0 l1 r1 l2 r2
RDisjointUnion Function Record l0 r0 l1 r1 l2 r2
(RProxying f r2) => RDisjointUnion Function f l0 r0 l1 r1 l2 r2
#disjointUnion Source
disjointUnion :: forall r2 r1 r0 p l2 l1 l0 f. Nub r2 r2 => RowToList r0 l0 => RowToList r1 l1 => RowToList r2 l2 => RDisjointUnion p f l0 r0 l1 r1 l2 r2 => Union r0 r1 r2 => f r0 -> p (f r1) (f r2)
Re-exports from Data.Struct.Empty
Re-exports from Data.Struct.Equal
#REqual Source
class REqual (f :: Row Type -> Type) (l :: RowList) (r :: Row Type) | l -> r where
Members
requal :: forall g. RLProxying g l => g l -> f r -> f r -> Boolean
Instances
(EqualFields l r, RowToList r l) => REqual Record l r
(RowToList r l, VariantEqs l, VariantTags l) => REqual Variant l r
(RProxying f r) => REqual f l r
Re-exports from Data.Struct.Eval
#REval Source
Re-exports from Data.Struct.Expand
#RExpand Source
Re-exports from Data.Struct.Get
Re-exports from Data.Struct.GetOrAlt
#RGetOrAlt Source
#getOrAlt Source
getOrAlt :: forall v s r' r l h g f. Alternative h => Cons s v r' r => RowToList r l => RGetOrAlt f g s l r => g s -> f r -> h v
Re-exports from Data.Struct.Insert
#RInsert Source
class RInsert (p :: Type -> Type -> Type) (f :: Row Type -> Type) (g :: Symbol -> Type) (s :: Symbol) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) | l0 -> r0, l1 -> r1 where
Members
rinsert :: forall v h. Cons s v r0 r1 => Lacks s r0 => RLProxying h l0 => RLProxying h l1 => h l0 -> h l1 -> g s -> v -> p (f r0) (f r1)
Instances
Re-exports from Data.Struct.Map
#GMap Source
class GMap (p :: Type -> Type -> Type) (f :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (r2 :: Row Type) | l0 -> r0, l1 -> r1, l0 l1 -> r2 where
Members
gMap :: forall g. RLProxying g l0 => RLProxying g l1 => g l0 -> g l1 -> Record r0 -> p (f r1) (f r2)
Instances
#RMap Source
class RMap (p :: Type -> Type -> Type) (f :: Row Type -> Type) (g :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (r2 :: Row Type) | l0 -> r0, l1 -> r1, l0 l1 -> r2 where
Members
rmap :: forall h. RLProxying h l0 => RLProxying h l1 => h l0 -> h l1 -> g r0 -> p (f r1) (f r2)
Instances
Re-exports from Data.Struct.Match
#RMatch Source
Re-exports from Data.Struct.Merge
#RMerge Source
class RMerge (p :: Type -> Type -> Type) (f :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (l2 :: RowList) (r2 :: Row Type) | l0 -> r0, l1 -> r1, l2 -> r2 where
Members
rmerge :: forall r3 g. Nub r2 r3 => RLProxying g l0 => RLProxying g l1 => RLProxying g l2 => Union r0 r1 r2 => g l0 -> g l1 -> g l2 -> f r0 -> p (f r1) (f r3)
Instances
Re-exports from Data.Struct.Modify
#RModify Source
class RModify (p :: Type -> Type -> Type) (f :: Row Type -> Type) (g :: Symbol -> Type) (s :: Symbol) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) | l0 -> r0, l1 -> r1 where
Members
rmodify :: forall v1 v0 r h. Cons s v0 r r0 => Cons s v1 r r1 => RLProxying h l0 => RLProxying h l1 => h l0 -> h l1 -> g s -> (v0 -> v1) -> p (f r0) (f r1)
Instances
Re-exports from Data.Struct.Nub
#RNub Source
Re-exports from Data.Struct.On
#ROn Source
class ROn (f :: Row Type -> Type) (g :: Symbol -> Type) (s :: Symbol) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) | l0 -> r0, l1 -> r1 where
Members
ron :: forall h b a. Cons s a r0 r1 => RLProxying h l0 => RLProxying h l1 => h l0 -> h l1 -> g s -> (a -> b) -> (f r0 -> b) -> f r1 -> b
Instances
Re-exports from Data.Struct.OnMatch
#ROnMatch Source
class ROnMatch (f :: Row Type -> Type) (g :: Row Type -> Type) (v :: Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (l2 :: RowList) (r2 :: Row Type) (l3 :: RowList) (r3 :: Row Type) | l0 -> r0, l1 -> r1, l2 -> r2, l3 -> r3 where
Members
ronMatch :: forall h. RLProxying h l0 => RLProxying h l1 => RLProxying h l2 => RLProxying h l3 => Union r1 r2 r3 => h l0 -> h l1 -> h l2 -> h l3 -> f r0 -> (g r2 -> v) -> g r3 -> v
Instances
(RowToList r0 l0, VariantMatchCases l0 r1 v) => ROnMatch Record Variant v l0 r0 l1 r1 l2 r2 l3 r3
Re-exports from Data.Struct.Rename
#RRename Source
class RRename (p :: Type -> Type -> Type) (f :: Row Type -> Type) (g :: Symbol -> Type) (s0 :: Symbol) (s1 :: Symbol) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) | l0 -> r0, l1 -> r1 where
Members
rrename :: forall v r h. Cons s0 v r r0 => Cons s1 v r r1 => Lacks s0 r => Lacks s0 r1 => Lacks s1 r => Lacks s1 r0 => RLProxying h l0 => RLProxying h l1 => h l0 -> h l1 -> g s0 -> g s1 -> p (f r0) (f r1)
Instances
(IsSymbol s0, IsSymbol s1, SProxying g s0, SProxying g s1) => RRename Builder Record g s0 s1 l0 r0 l1 r1
(IsSymbol s0, IsSymbol s1, SProxying g s0, SProxying g s1) => RRename Function Record g s0 s1 l0 r0 l1 r1
(IsSymbol s0, IsSymbol s1, SProxying g s0, SProxying g s1) => RRename Function Variant g s0 s1 l0 r0 l1 r1
(RProxying f r1) => RRename Function f g s0 s1 l0 r0 l1 r1
Re-exports from Data.Struct.RenameMany
#GRenameMany Source
class GRenameMany (l0 :: RowList) (l1 :: RowList) (l2 :: RowList) | l0 l1 -> l2, l0 l2 -> l1
Instances
(GRenameMany_ l0 l1 l2 True) => GRenameMany l0 l1 l2
#RRenameMany Source
class RRenameMany (p :: Type -> Type -> Type) (f :: Row Type -> Type) (g :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (l2 :: RowList) (r2 :: Row Type) | l0 -> r0, l1 -> r1, l2 -> r2, l0 l1 -> l2, l0 l2 -> l1 where
Members
rrenameMany :: GRenameMany l0 l1 l2 => g r0 -> p (f r1) (f r2)
Instances
(ListToRow l1 r1, ReifyKeyAndValueSymbols l0, RowToList r0 l0, RowToList r2 l2) => RRenameMany Builder Record g l0 r0 l1 r1 l2 r2
(ListToRow l1 r1, ReifyKeyAndValueSymbols l0, RowToList r0 l0, RowToList r2 l2) => RRenameMany Function Record g l0 r0 l1 r1 l2 r2
(RProxying f r2) => RRenameMany Function f g l0 r0 l1 r1 l2 r2
Re-exports from Data.Struct.Set
#RSet Source
class RSet (p :: Type -> Type -> Type) (f :: Row Type -> Type) (g :: Symbol -> Type) (s :: Symbol) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) | l0 -> r0, l1 -> r1 where
Members
rset :: forall v1 v0 r h. Cons s v0 r r0 => Cons s v1 r r1 => RLProxying h l0 => RLProxying h l1 => h l0 -> h l1 -> g s -> v1 -> p (f r0) (f r1)
Instances
Re-exports from Data.Struct.Singleton
#RSingleton Source
class RSingleton (f :: Row Type -> Type) (g :: Symbol -> Type) (s :: Symbol) where
Members
rsingleton :: forall v r. Cons s v () r => Lacks s () => g s -> v -> f r
Instances
(IsSymbol s, SProxying g s) => RSingleton Record g s
#singleton Source
singleton :: forall v s r g f. Cons s v () r => Lacks s () => RSingleton f g s => g s -> v -> f r
Re-exports from Data.Struct.Union
#RUnion Source
class RUnion (p :: Type -> Type -> Type) (f :: Row Type -> Type) (l0 :: RowList) (r0 :: Row Type) (l1 :: RowList) (r1 :: Row Type) (l2 :: RowList) (r2 :: Row Type) | l0 -> r0, l1 -> r1, l2 -> r2 where
Members
runion :: forall g. RLProxying g l0 => RLProxying g l1 => RLProxying g l2 => Union r0 r1 r2 => g l0 -> g l1 -> g l2 -> f r0 -> p (f r1) (f r2)
Instances
Re-exports from Data.Struct.Utils.HasSymbol
Re-exports from Data.Struct.Utils.HasSymbolValue
#HasSymbolValue Source
class HasSymbolValue (l :: RowList) (s :: Symbol) (b :: Boolean) | l s -> b
Instances
(HasSymbolValue_ l s b True) => HasSymbolValue l s b
Re-exports from Data.Struct.Utils.ReifyKeyAndValueSymbols
#ReifyKeyAndValueSymbols Source
class ReifyKeyAndValueSymbols (l :: RowList) where
Members
reifyKeyAndValueSymbols' :: forall f. RLProxying f l => f l -> List (Tuple String String)
Instances
ReifyKeyAndValueSymbols Nil
(IsSymbol s0, IsSymbol s1, ReifyKeyAndValueSymbols l') => ReifyKeyAndValueSymbols (Cons s0 (f s1) l')
#reifyKeyAndValueSymbols Source
reifyKeyAndValueSymbols :: forall r l f. ReifyKeyAndValueSymbols l => RowToList r l => f r -> List (Tuple String String)
- Modules
- Data.
Struct - Data.
Struct. Compare - Data.
Struct. Compare. Compare - Data.
Struct. Compare. RCompare - Data.
Struct. Const - Data.
Struct. Const. Const - Data.
Struct. Const. RConst - Data.
Struct. Contract - Data.
Struct. Contract. Contract - Data.
Struct. Contract. GContract - Data.
Struct. Contract. RContract - Data.
Struct. ContractOrAlt - Data.
Struct. ContractOrAlt. ContractOrAlt - Data.
Struct. ContractOrAlt. RContractOrAlt - Data.
Struct. Delete - Data.
Struct. Delete. Delete - Data.
Struct. Delete. RDelete - Data.
Struct. DisjointUnion - Data.
Struct. DisjointUnion. DisjointUnion - Data.
Struct. DisjointUnion. RDisjointUnion - Data.
Struct. Empty - Data.
Struct. Empty. REmpty - Data.
Struct. Equal - Data.
Struct. Equal. Equal - Data.
Struct. Equal. REqual - Data.
Struct. Eval - Data.
Struct. Eval. Eval - Data.
Struct. Eval. REval - Data.
Struct. Expand - Data.
Struct. Expand. Expand - Data.
Struct. Expand. RExpand - Data.
Struct. Get - Data.
Struct. Get. Get - Data.
Struct. Get. RGet - Data.
Struct. GetOrAlt - Data.
Struct. GetOrAlt. GetOrAlt - Data.
Struct. GetOrAlt. RGetOrAlt - Data.
Struct. Insert - Data.
Struct. Insert. Insert - Data.
Struct. Insert. RInsert - Data.
Struct. Map - Data.
Struct. Map. GMap - Data.
Struct. Map. Map - Data.
Struct. Map. RMap - Data.
Struct. Match - Data.
Struct. Match. Match - Data.
Struct. Match. RMatch - Data.
Struct. Merge - Data.
Struct. Merge. Merge - Data.
Struct. Merge. RMerge - Data.
Struct. Modify - Data.
Struct. Modify. Modify - Data.
Struct. Modify. RModify - Data.
Struct. Nub - Data.
Struct. Nub. Nub - Data.
Struct. Nub. RNub - Data.
Struct. On - Data.
Struct. On. On - Data.
Struct. On. ROn - Data.
Struct. OnMatch - Data.
Struct. OnMatch. OnMatch - Data.
Struct. OnMatch. ROnMatch - Data.
Struct. Rename - Data.
Struct. Rename. RRename - Data.
Struct. Rename. Rename - Data.
Struct. RenameMany - Data.
Struct. RenameMany. GRenameMany - Data.
Struct. RenameMany. RRenameMany - Data.
Struct. Set - Data.
Struct. Set. RSet - Data.
Struct. Set. Set - Data.
Struct. Singleton - Data.
Struct. Singleton. RSingleton - Data.
Struct. Union - Data.
Struct. Union. RUnion - Data.
Struct. Union. Union - Data.
Struct. Utils. HasSymbol - Data.
Struct. Utils. HasSymbolValue - Data.
Struct. Utils. Record - Data.
Struct. Utils. ReifyKeyAndValueSymbols