Module
Yoga.Fetch.Om.ReadOptional
- Package
- purescript-yoga-fetch-om
- Repository
- rowtype-yoga/purescript-yoga-fetch-om
#ReadPartialQuery Source
class ReadPartialQuery :: RowList Type -> Row Type -> Constraintclass ReadPartialQuery (rl :: RowList Type) (queryParams :: Row Type) | rl -> queryParams where
Read query params from a potentially-partial record. Walks the query params RowList: Maybe ty → read with undefined-awareness (present → Just, absent → Nothing) bare ty → read directly (required, always present)
Members
readPartialQuery :: forall r. Record r -> Record queryParams
Instances
ReadPartialQuery Nil ()(IsSymbol name, ReadPartialQuery tail tailQuery, Cons name (Maybe ty) tailQuery queryParams, Lacks name tailQuery) => ReadPartialQuery (Cons name (Maybe ty) tail) queryParams(IsSymbol name, ReadPartialQuery tail tailQuery, Cons name ty tailQuery queryParams, Lacks name tailQuery) => ReadPartialQuery (Cons name ty tail) queryParams
- Modules
- Yoga.
Fetch. Om - Yoga.
Fetch. Om. BuildUrl - Yoga.
Fetch. Om. ClientFunction - Yoga.
Fetch. Om. ExtractParams - Yoga.
Fetch. Om. MakeRequest - Yoga.
Fetch. Om. ParseResponse - Yoga.
Fetch. Om. ReadOptional - Yoga.
Fetch. Om. Simple - Yoga.
Fetch. Om. SplitParams - Yoga.
Fetch. Om. SplitResponses - Yoga.
Fetch. Om. StreamDecode - Yoga.
Fetch. Om. Variant