Module
Payload.Server.Internal.OmitEmpty
- Package
- purescript-payload
- Repository
- hoodunit/purescript-payload
#OmitEmptyFields Source
class OmitEmptyFields (rl :: RowList Type) (rows :: Row Type) (rowsNoEmpty :: Row Type) | rl rows -> rowsNoEmpty where
Members
omitEmptyFields :: Proxy rl -> Record rows -> Record rowsNoEmpty
Instances
OmitEmptyFields Nil rowsNoEmpty rowsNoEmpty
(RowToList fieldRows fieldRl, Cons label (Record fieldRows) rowsRest rows, RemoveEmptyField label fieldRl rows nextRows, OmitEmptyFields rest nextRows rowsNoEmpty) => OmitEmptyFields (Cons label (Record fieldRows) rest) rows rowsNoEmpty
(Cons label Undefined nextRows rows, Lacks label nextRows, IsSymbol label, OmitEmptyFields rest nextRows rowsNoEmpty) => OmitEmptyFields (Cons label Undefined rest) rows rowsNoEmpty
(OmitEmptyFields rest rows rowsNoEmpty) => OmitEmptyFields (Cons label fieldType rest) rows rowsNoEmpty
#RemoveEmptyField Source
class RemoveEmptyField (label :: Symbol) (fieldRl :: RowList Type) (rows :: Row Type) (rowsNoEmpty :: Row Type) | fieldRl rows -> rowsNoEmpty where
Members
removeEmptyField :: Proxy label -> Proxy fieldRl -> Record rows -> Record rowsNoEmpty
Instances
(Cons label fieldType rowsNoEmpty rows, IsSymbol label, Lacks label rowsNoEmpty) => RemoveEmptyField label Nil rows rowsNoEmpty
(Cons label fieldType rowsNoEmpty rows, IsSymbol label, Lacks label rowsNoEmpty) => RemoveEmptyField label (Cons key Undefined rl) rows rowsNoEmpty
RemoveEmptyField label (Cons key valType rl) rowsNoEmpty rowsNoEmpty
- Modules
- Payload.
Client - Payload.
Client. ClientApi - Payload.
Client. DecodeResponse - Payload.
Client. EncodeBody - Payload.
Client. EncodeParam - Payload.
Client. Internal. EncodeUri - Payload.
Client. Internal. Query - Payload.
Client. Internal. Url - Payload.
Client. Options - Payload.
Client. QueryParams - Payload.
Client. Queryable - Payload.
Client. Response - Payload.
ContentType - Payload.
Debug - Payload.
Headers - Payload.
Internal. QueryParsing - Payload.
Internal. Route - Payload.
Internal. UrlParsing - Payload.
Internal. Utils - Payload.
ResponseTypes - Payload.
Server - Payload.
Server. Cookies - Payload.
Server. DecodeBody - Payload.
Server. Guards - Payload.
Server. Handleable - Payload.
Server. Handlers - Payload.
Server. Internal. GuardParsing - Payload.
Server. Internal. MimeTypes - Payload.
Server. Internal. OmitEmpty - Payload.
Server. Internal. Query - Payload.
Server. Internal. Querystring - Payload.
Server. Internal. Request - Payload.
Server. Internal. ServerResponse - Payload.
Server. Internal. Trie - Payload.
Server. Internal. Url - Payload.
Server. Internal. UrlString - Payload.
Server. Params - Payload.
Server. Path - Payload.
Server. QueryParams - Payload.
Server. Response - Payload.
Server. Routable - Payload.
Server. Status - Payload.
Spec - Payload.
TypeErrors