{-# LANGUAGE FlexibleContexts #-}
module Opaleye.ToFields (
toFields,
toFieldsI,
C.toToFields,
toFieldsExplicit,
C.ToFields,
) where
import qualified Opaleye.Internal.Constant as C
import Opaleye.Internal.Inferrable (Inferrable, runInferrable)
import qualified Data.Profunctor.Product.Default as D
toFieldsExplicit :: C.ToFields haskells fields -> haskells -> fields
toFieldsExplicit :: ToFields haskells fields -> haskells -> fields
toFieldsExplicit = ToFields haskells fields -> haskells -> fields
forall haskells fields.
ToFields haskells fields -> haskells -> fields
C.constantExplicit
toFields :: D.Default C.ToFields haskells fields => haskells -> fields
toFields :: haskells -> fields
toFields = haskells -> fields
forall haskells fields.
Default ToFields haskells fields =>
haskells -> fields
C.toFields
toFieldsI :: (D.Default (Inferrable C.ToFields) haskells fields)
=> haskells
-> fields
toFieldsI :: haskells -> fields
toFieldsI = ToFields haskells fields -> haskells -> fields
forall haskells fields.
ToFields haskells fields -> haskells -> fields
toFieldsExplicit (Inferrable ToFields haskells fields -> ToFields haskells fields
forall (p :: * -> * -> *) a b. Inferrable p a b -> p a b
runInferrable Inferrable ToFields haskells fields
forall (p :: * -> * -> *) a b. Default p a b => p a b
D.def)