freer-extras-1.2.0.0: Useful extensions to simple-freer
Safe HaskellNone
LanguageHaskell2010

Control.Monad.Freer.Extras.Beam.Postgres

Documentation

data DbConfig Source #

Constructors

DbConfig 

Instances

Instances details
Eq DbConfig Source # 
Instance details

Defined in Control.Monad.Freer.Extras.Beam.Postgres

Show DbConfig Source # 
Instance details

Defined in Control.Monad.Freer.Extras.Beam.Postgres

Generic DbConfig Source # 
Instance details

Defined in Control.Monad.Freer.Extras.Beam.Postgres

Associated Types

type Rep DbConfig :: Type -> Type Source #

ToJSON DbConfig Source # 
Instance details

Defined in Control.Monad.Freer.Extras.Beam.Postgres

Methods

toJSON :: DbConfig -> Value

toEncoding :: DbConfig -> Encoding

toJSONList :: [DbConfig] -> Value

toEncodingList :: [DbConfig] -> Encoding

FromJSON DbConfig Source # 
Instance details

Defined in Control.Monad.Freer.Extras.Beam.Postgres

Methods

parseJSON :: Value -> Parser DbConfig

parseJSONList :: Value -> Parser [DbConfig]

Default DbConfig Source # 
Instance details

Defined in Control.Monad.Freer.Extras.Beam.Postgres

Methods

def :: DbConfig

type Rep DbConfig Source # 
Instance details

Defined in Control.Monad.Freer.Extras.Beam.Postgres

type Rep DbConfig = D1 ('MetaData "DbConfig" "Control.Monad.Freer.Extras.Beam.Postgres" "freer-extras-1.2.0.0-1q4AUo79Td5ISTeTXorMWT" 'False) (C1 ('MetaCons "DbConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dbConfigUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "dbConfigPass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "dbConfigHost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "dbConfigPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word16) :*: S1 ('MetaSel ('Just "dbConfigDatabase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "dbConfigPoolSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "dbConfigMarconiFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

runBeam :: forall effs. (LastMember IO effs, Member (Reader (Pool Connection)) effs) => Trace IO BeamLog -> Pg ~> Eff effs Source #