realworld-hs-0.1.0.0: Scotty impl of https://github.com/gothinkster/realworld
Safe HaskellSafe-Inferred
LanguageGHC2021

Conduit.App.Env

Synopsis

Documentation

data EnvType Source #

The type of the runtime environment. Development has more logging and auto-runs DB migrations.

Constructors

Production 
Development 

Instances

Instances details
FromJSON EnvType Source # 
Instance details

Defined in Conduit.App.Env

Generic EnvType Source # 
Instance details

Defined in Conduit.App.Env

Associated Types

type Rep EnvType :: Type -> Type #

Methods

from :: EnvType -> Rep EnvType x #

to :: Rep EnvType x -> EnvType #

Read EnvType Source # 
Instance details

Defined in Conduit.App.Env

Show EnvType Source # 
Instance details

Defined in Conduit.App.Env

Eq EnvType Source # 
Instance details

Defined in Conduit.App.Env

Methods

(==) :: EnvType -> EnvType -> Bool #

(/=) :: EnvType -> EnvType -> Bool #

Has' EnvType Env Source # 
Instance details

Defined in Conduit.App.Env

Methods

obtain :: Env -> EnvType Source #

type Rep EnvType Source # 
Instance details

Defined in Conduit.App.Env

type Rep EnvType = D1 ('MetaData "EnvType" "Conduit.App.Env" "realworld-hs-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Production" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Development" 'PrefixI 'False) (U1 :: Type -> Type))

data Env Source #

Global state of the application.

Constructors

Env 

Fields

Instances

Instances details
MonadReader Env AppM Source # 
Instance details

Defined in Conduit.App.Monad

Methods

ask :: AppM Env #

local :: (Env -> Env) -> AppM a -> AppM a #

reader :: (Env -> a) -> AppM a #

Has' EnvType Env Source # 
Instance details

Defined in Conduit.App.Env

Methods

obtain :: Env -> EnvType Source #

Has' DBPool Env Source # 
Instance details

Defined in Conduit.App.Env

Methods

obtain :: Env -> DBPool Source #

Has' JWTInfo Env Source # 
Instance details

Defined in Conduit.App.Env

Methods

obtain :: Env -> JWTInfo Source #