Module
ChocoPie
- Package
- purescript-choco-pie
- Repository
- justinwoo/purescript-chocopie
#runChocoPie Source
runChocoPie :: forall source sink driver. ChocoPieRecord source sink driver => (Record source -> Record sink) -> Record driver -> Effect Unit
#ChocoPieRecord Source
class ChocoPieRecord (source :: Row Type) (sink :: Row Type) (driver :: Row Type) | source -> sink driver where
Members
Instances
(RowToList driver driverL, RowToList sink sinkL, MakeSinkProxies sinkL () bundle, CallDrivers driverL driver bundle () source, ReplicateMany sinkL sink bundle) => ChocoPieRecord source sink driver
#MakeSinkProxies Source
class MakeSinkProxies (sinkL :: RowList) (bundle' :: Row Type) (bundle :: Row Type) | sinkL -> bundle' bundle where
Members
Instances
(IsSymbol name, MakeSinkProxies tail bundle'' bundle', Lacks name bundle', Cons name { event :: Event a, push :: a -> Effect Unit } bundle' bundle) => MakeSinkProxies (Cons name (Event a) tail) bundle'' bundle
MakeSinkProxies Nil () ()
#CallDrivers Source
class CallDrivers (driverL :: RowList) (driver :: Row Type) (bundle :: Row Type) (source' :: Row Type) (source :: Row Type) | driverL -> driver bundle source' source where
Members
callDrivers :: RLProxy driverL -> Record driver -> Record bundle -> Effect (Builder (Record source') (Record source))
Instances
(IsSymbol name, CallDrivers driverTail driver bundle source'' source', Cons name (Event a -> Effect b) trash1 driver, Cons name { event :: Event a, push :: a -> Effect Unit } trash2 bundle, Lacks name source', Cons name b source' source) => CallDrivers (Cons name driverton driverTail) driver bundle source'' source
CallDrivers Nil driver bundle () ()
#ReplicateMany Source
class ReplicateMany (sinkL :: RowList) (sink :: Row Type) (bundle :: Row Type) | sinkL -> sink bundle where
Members
Instances
(IsSymbol name, Cons name (Event a) sink' sink, Cons name { event :: Event a, push :: a -> Effect Unit } bundle' bundle, ReplicateMany tail sink bundle) => ReplicateMany (Cons name (Event a) tail) sink bundle
ReplicateMany Nil sink bundle
- Modules
- ChocoPie