gogol-fonts-0.3.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 #

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 #

Instances

Eq Webfont # 

Methods

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

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

Data Webfont # 

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 # 
Generic Webfont # 

Associated Types

type Rep Webfont :: * -> * #

Methods

from :: Webfont -> Rep Webfont x #

to :: Rep Webfont x -> Webfont #

ToJSON Webfont # 
FromJSON Webfont # 
type Rep Webfont # 

webfont :: Webfont #

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] #

The available variants for the font.

wKind :: Lens' Webfont Text #

This kind represents a webfont object in the webfonts service.

wCategory :: Lens' Webfont (Maybe Text) #

The category of the font.

wFamily :: Lens' Webfont (Maybe Text) #

The name of the font.

wVersion :: Lens' Webfont (Maybe Text) #

The font version.

wFiles :: Lens' Webfont (Maybe WebfontFiles) #

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

wSubSets :: Lens' Webfont [Text] #

The scripts supported by the font.

wLastModified :: Lens' Webfont (Maybe Day) #

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

WebfontList

data WebfontList #

Instances

Eq WebfontList # 
Data WebfontList # 

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 # 
Generic WebfontList # 

Associated Types

type Rep WebfontList :: * -> * #

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

webfontList :: WebfontList #

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 #

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

wlItems :: Lens' WebfontList [Webfont] #

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

WebfontsListSort

data WebfontsListSort #

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 # 
Eq WebfontsListSort # 
Data WebfontsListSort # 

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 # 
Read WebfontsListSort # 
Show WebfontsListSort # 
Generic WebfontsListSort # 
Hashable WebfontsListSort # 
ToJSON WebfontsListSort # 
FromJSON WebfontsListSort # 
FromHttpApiData WebfontsListSort # 
ToHttpApiData WebfontsListSort # 
type Rep WebfontsListSort # 
type Rep WebfontsListSort = D1 (MetaData "WebfontsListSort" "Network.Google.Fonts.Types.Sum" "gogol-fonts-0.3.0-xPSWAt8MphJA90cCxXjiP" False) ((:+:) ((:+:) (C1 (MetaCons "Alpha" PrefixI False) U1) (C1 (MetaCons "Date" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Popularity" PrefixI False) U1) ((:+:) (C1 (MetaCons "Style" PrefixI False) U1) (C1 (MetaCons "Trending" PrefixI False) U1))))

WebfontFiles

data WebfontFiles #

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 # 
Data WebfontFiles # 

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 # 
Generic WebfontFiles # 

Associated Types

type Rep WebfontFiles :: * -> * #

ToJSON WebfontFiles # 
FromJSON WebfontFiles # 
type Rep WebfontFiles # 
type Rep WebfontFiles = D1 (MetaData "WebfontFiles" "Network.Google.Fonts.Types.Product" "gogol-fonts-0.3.0-xPSWAt8MphJA90cCxXjiP" True) (C1 (MetaCons "WebfontFiles'" PrefixI True) (S1 (MetaSel (Just Symbol "_wfAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text Text))))

webfontFiles #

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) #

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