Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- fontsService :: ServiceConfig
- data Webfont
- webfont :: Webfont
- wVariants :: Lens' Webfont [Text]
- wKind :: Lens' Webfont Text
- wCategory :: Lens' Webfont (Maybe Text)
- wFamily :: Lens' Webfont (Maybe Text)
- wVersion :: Lens' Webfont (Maybe Text)
- wFiles :: Lens' Webfont (Maybe WebfontFiles)
- wSubSets :: Lens' Webfont [Text]
- wLastModified :: Lens' Webfont (Maybe Day)
- data WebfontList
- webfontList :: WebfontList
- wlKind :: Lens' WebfontList Text
- wlItems :: Lens' WebfontList [Webfont]
- data WebfontsListSort
- = Alpha
- | Date
- | Popularity
- | Style
- | Trending
- data WebfontFiles
- webfontFiles :: HashMap Text Text -> WebfontFiles
- wfAddtional :: Lens' WebfontFiles (HashMap Text Text)
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
Instances
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.
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
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
Alpha |
|
Date |
|
Popularity |
|
Style |
|
Trending |
|
Instances
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
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).