gogol-fonts-0.4.0: Google Fonts Developer SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Fonts.Types

Contents

Description

 
Synopsis

Service Configuration

fontsService :: ServiceConfig Source #

Default request referring to version v1 of the Google Fonts Developer API. This contains the host and root path used as a starting point for constructing service requests.

Webfont

data Webfont Source #

Instances
Eq Webfont Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Methods

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

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

Data Webfont Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Webfont -> c Webfont #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Webfont #

toConstr :: Webfont -> Constr #

dataTypeOf :: Webfont -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Webfont) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Webfont) #

gmapT :: (forall b. Data b => b -> b) -> Webfont -> Webfont #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Webfont -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Webfont -> r #

gmapQ :: (forall d. Data d => d -> u) -> Webfont -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Webfont -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Webfont -> m Webfont #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Webfont -> m Webfont #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Webfont -> m Webfont #

Show Webfont Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Generic Webfont Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Associated Types

type Rep Webfont :: Type -> Type #

Methods

from :: Webfont -> Rep Webfont x #

to :: Rep Webfont x -> Webfont #

ToJSON Webfont Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

FromJSON Webfont Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

type Rep Webfont Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

webfont :: Webfont Source #

Creates a value of Webfont with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

wVariants :: Lens' Webfont [Text] Source #

The available variants for the font.

wKind :: Lens' Webfont Text Source #

This kind represents a webfont object in the webfonts service.

wCategory :: Lens' Webfont (Maybe Text) Source #

The category of the font.

wFamily :: Lens' Webfont (Maybe Text) Source #

The name of the font.

wVersion :: Lens' Webfont (Maybe Text) Source #

The font version.

wFiles :: Lens' Webfont (Maybe WebfontFiles) Source #

The font files (with all supported scripts) for each one of the available variants, as a key : value map.

wSubSets :: Lens' Webfont [Text] Source #

The scripts supported by the font.

wLastModified :: Lens' Webfont (Maybe Day) Source #

The date (format "yyyy-MM-dd") the font was modified for the last time.

WebfontList

data WebfontList Source #

Instances
Eq WebfontList Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Data WebfontList Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WebfontList -> c WebfontList #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c WebfontList #

toConstr :: WebfontList -> Constr #

dataTypeOf :: WebfontList -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c WebfontList) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c WebfontList) #

gmapT :: (forall b. Data b => b -> b) -> WebfontList -> WebfontList #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> WebfontList -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> WebfontList -> r #

gmapQ :: (forall d. Data d => d -> u) -> WebfontList -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> WebfontList -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> WebfontList -> m WebfontList #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> WebfontList -> m WebfontList #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> WebfontList -> m WebfontList #

Show WebfontList Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Generic WebfontList Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Associated Types

type Rep WebfontList :: Type -> Type #

ToJSON WebfontList Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

FromJSON WebfontList Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

type Rep WebfontList Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

type Rep WebfontList = D1 (MetaData "WebfontList" "Network.Google.Fonts.Types.Product" "gogol-fonts-0.4.0-2csAfZjptSm1QFPMcK89JP" False) (C1 (MetaCons "WebfontList'" PrefixI True) (S1 (MetaSel (Just "_wlKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_wlItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Webfont]))))

webfontList :: WebfontList Source #

Creates a value of WebfontList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

wlKind :: Lens' WebfontList Text Source #

This kind represents a list of webfont objects in the webfonts service.

wlItems :: Lens' WebfontList [Webfont] Source #

The list of fonts currently served by the Google Fonts API.

WebfontsListSort

data WebfontsListSort Source #

Enables sorting of the list

Constructors

Alpha

alpha Sort alphabetically

Date

date Sort by date added

Popularity

popularity Sort by popularity

Style

style Sort by number of styles

Trending

trending Sort by trending

Instances
Enum WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

Eq WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

Data WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WebfontsListSort -> c WebfontsListSort #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c WebfontsListSort #

toConstr :: WebfontsListSort -> Constr #

dataTypeOf :: WebfontsListSort -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c WebfontsListSort) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c WebfontsListSort) #

gmapT :: (forall b. Data b => b -> b) -> WebfontsListSort -> WebfontsListSort #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> WebfontsListSort -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> WebfontsListSort -> r #

gmapQ :: (forall d. Data d => d -> u) -> WebfontsListSort -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> WebfontsListSort -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> WebfontsListSort -> m WebfontsListSort #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> WebfontsListSort -> m WebfontsListSort #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> WebfontsListSort -> m WebfontsListSort #

Ord WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

Read WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

Show WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

Generic WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

Associated Types

type Rep WebfontsListSort :: Type -> Type #

Hashable WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

ToJSON WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

FromJSON WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

FromHttpApiData WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

ToHttpApiData WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

type Rep WebfontsListSort Source # 
Instance details

Defined in Network.Google.Fonts.Types.Sum

type Rep WebfontsListSort = D1 (MetaData "WebfontsListSort" "Network.Google.Fonts.Types.Sum" "gogol-fonts-0.4.0-2csAfZjptSm1QFPMcK89JP" False) ((C1 (MetaCons "Alpha" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Date" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Popularity" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Style" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Trending" PrefixI False) (U1 :: Type -> Type))))

WebfontFiles

data WebfontFiles Source #

The font files (with all supported scripts) for each one of the available variants, as a key : value map.

See: webfontFiles smart constructor.

Instances
Eq WebfontFiles Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Data WebfontFiles Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> WebfontFiles -> c WebfontFiles #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c WebfontFiles #

toConstr :: WebfontFiles -> Constr #

dataTypeOf :: WebfontFiles -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c WebfontFiles) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c WebfontFiles) #

gmapT :: (forall b. Data b => b -> b) -> WebfontFiles -> WebfontFiles #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> WebfontFiles -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> WebfontFiles -> r #

gmapQ :: (forall d. Data d => d -> u) -> WebfontFiles -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> WebfontFiles -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> WebfontFiles -> m WebfontFiles #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> WebfontFiles -> m WebfontFiles #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> WebfontFiles -> m WebfontFiles #

Show WebfontFiles Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Generic WebfontFiles Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

Associated Types

type Rep WebfontFiles :: Type -> Type #

ToJSON WebfontFiles Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

FromJSON WebfontFiles Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

type Rep WebfontFiles Source # 
Instance details

Defined in Network.Google.Fonts.Types.Product

type Rep WebfontFiles = D1 (MetaData "WebfontFiles" "Network.Google.Fonts.Types.Product" "gogol-fonts-0.4.0-2csAfZjptSm1QFPMcK89JP" True) (C1 (MetaCons "WebfontFiles'" PrefixI True) (S1 (MetaSel (Just "_wfAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text Text))))

webfontFiles Source #

Creates a value of WebfontFiles with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

wfAddtional :: Lens' WebfontFiles (HashMap Text Text) Source #

The font file URL (value) for an specific variant (key).