graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Data.URL.Template

Description

A simple URL templating that enables interpolating environment variables

Synopsis

Documentation

newtype Variable Source #

Constructors

Variable 

Fields

Instances

Instances details
Eq Variable Source # 
Instance details

Defined in Data.URL.Template

Show Variable Source # 
Instance details

Defined in Data.URL.Template

Generic Variable Source # 
Instance details

Defined in Data.URL.Template

Associated Types

type Rep Variable :: Type -> Type #

Methods

from :: Variable -> Rep Variable x #

to :: Rep Variable x -> Variable #

NFData Variable Source # 
Instance details

Defined in Hasura.Base.Instances

Methods

rnf :: Variable -> () #

Hashable Variable Source # 
Instance details

Defined in Data.URL.Template

Arbitrary Variable Source # 
Instance details

Defined in Data.URL.Template

Cacheable Variable Source # 
Instance details

Defined in Hasura.Incremental.Internal.Dependency

type Rep Variable Source # 
Instance details

Defined in Data.URL.Template

type Rep Variable = D1 ('MetaData "Variable" "Data.URL.Template" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "Variable" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVariable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data TemplateItem Source #

Constructors

TIText !Text 
TIVariable !Variable 

Instances

Instances details
Eq TemplateItem Source # 
Instance details

Defined in Data.URL.Template

Show TemplateItem Source # 
Instance details

Defined in Data.URL.Template

Generic TemplateItem Source # 
Instance details

Defined in Data.URL.Template

Associated Types

type Rep TemplateItem :: Type -> Type #

NFData TemplateItem Source # 
Instance details

Defined in Hasura.Base.Instances

Methods

rnf :: TemplateItem -> () #

Hashable TemplateItem Source # 
Instance details

Defined in Data.URL.Template

Cacheable TemplateItem Source # 
Instance details

Defined in Hasura.Incremental.Internal.Dependency

type Rep TemplateItem Source # 
Instance details

Defined in Data.URL.Template

type Rep TemplateItem = D1 ('MetaData "TemplateItem" "Data.URL.Template" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "TIText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "TIVariable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Variable)))

newtype URLTemplate Source #

A String with environment variables enclosed in '{{' and '}}' http://{{APP_HOST}}:{{APP_PORT}}/v1/api

Constructors

URLTemplate 

Instances

Instances details
Eq URLTemplate Source # 
Instance details

Defined in Data.URL.Template

Show URLTemplate Source # 
Instance details

Defined in Data.URL.Template

Generic URLTemplate Source # 
Instance details

Defined in Data.URL.Template

Associated Types

type Rep URLTemplate :: Type -> Type #

NFData URLTemplate Source # 
Instance details

Defined in Hasura.Base.Instances

Methods

rnf :: URLTemplate -> () #

Hashable URLTemplate Source # 
Instance details

Defined in Data.URL.Template

Arbitrary URLTemplate Source # 
Instance details

Defined in Data.URL.Template

Cacheable URLTemplate Source # 
Instance details

Defined in Hasura.Incremental.Internal.Dependency

FromEnv URLTemplate Source # 
Instance details

Defined in Hasura.Server.Init.Env

type Rep URLTemplate Source # 
Instance details

Defined in Data.URL.Template

type Rep URLTemplate = D1 ('MetaData "URLTemplate" "Data.URL.Template" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "URLTemplate" 'PrefixI 'True) (S1 ('MetaSel ('Just "unURLTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TemplateItem])))