Module
Chanpon.Classes
- Package
- purescript-chanpon
- Repository
- justinwoo/purescript-chanpon
#FromResultFields Source
class FromResultFields (xs :: RowList) (from :: Row Type) (to :: Row Type) | xs -> from to where
Members
Instances
FromResultFields Nil () ()
(IsSymbol name, FromResult ty, FromResultFields tail from from', Lacks name from', Cons name ty from' to) => FromResultFields (Cons name ty tail) from to
#PrepareInput Source
class PrepareInput (xs :: RowList) (row :: Row Type) | xs -> row where
Members
prepareInputParams :: RLProxy xs -> Record row -> Int -> { args :: List Param, columns :: List String, params :: List String }
Instances
PrepareInput Nil row
(PrepareInput tail row, Cons name ty trash row, IsSymbol name, ToParam ty) => PrepareInput (Cons name ty tail) row
#PrepareSpec Source
class PrepareSpec (xs :: RowList) (row :: Row Type) | xs -> row where
Members
prepareSpec :: RLProxy xs -> Record row -> List String
Instances
PrepareSpec Nil trash
(PrepareSpec tail row, IsSymbol name, Cons name String trash row) => PrepareSpec (Cons name ty tail) row
#keysAsRecord Source
keysAsRecord :: forall keys rl row proxy. RowToList row rl => KeysAsRecordBuilder rl () keys => proxy row -> Record keys
#KeysAsRecordBuilder Source
class KeysAsRecordBuilder (xs :: RowList) (from :: Row Type) (to :: Row Type) | xs -> from to where
Members
keysAsRecordBuilder :: RLProxy xs -> Builder (Record from) (Record to)
Instances
KeysAsRecordBuilder Nil () ()
(KeysAsRecordBuilder tail from from', Lacks name from', Cons name String from' to, IsSymbol name) => KeysAsRecordBuilder (Cons name trash tail) from to
- Modules
- Chanpon
- Chanpon.
Classes