Copyright | (c) 2008-2010 Robert Greayer 2012 Brent Yorgey |
---|---|
License | GPL (see LICENSE) |
Maintainer | Brent Yorgey <byorgey@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Text.BlogLiterately.Options
Description
Configuation and command-line options.
Synopsis
- data BlogLiterately = BlogLiterately {
- _style :: Maybe String
- _hsHighlight :: Maybe HsHighlight
- _otherHighlight :: Maybe Bool
- _litHaskell :: Maybe Bool
- _toc :: Maybe Bool
- _rawlatex :: Maybe Bool
- _wplatex :: Maybe Bool
- _math :: Maybe String
- _ghci :: Maybe Bool
- _uploadImages :: Maybe Bool
- _categories :: [String]
- _tags :: [String]
- _blogid :: Maybe String
- _profile :: Maybe String
- _blog :: Maybe String
- _user :: Maybe String
- _password :: Maybe String
- _title :: Maybe String
- _file :: Maybe String
- _format :: Maybe String
- _postid :: Maybe String
- _page :: Maybe Bool
- _publish :: Maybe Bool
- _htmlOnly :: Maybe Bool
- _citations :: Maybe Bool
- _xtra :: [String]
- blOpts :: BlogLiterately
- style :: Lens' BlogLiterately (Maybe String)
- hsHighlight :: Lens' BlogLiterately (Maybe HsHighlight)
- otherHighlight :: Lens' BlogLiterately (Maybe Bool)
- litHaskell :: Lens' BlogLiterately (Maybe Bool)
- toc :: Lens' BlogLiterately (Maybe Bool)
- rawlatex :: Lens' BlogLiterately (Maybe Bool)
- wplatex :: Lens' BlogLiterately (Maybe Bool)
- math :: Lens' BlogLiterately (Maybe String)
- ghci :: Lens' BlogLiterately (Maybe Bool)
- uploadImages :: Lens' BlogLiterately (Maybe Bool)
- categories :: Lens' BlogLiterately [String]
- tags :: Lens' BlogLiterately [String]
- blogid :: Lens' BlogLiterately (Maybe String)
- profile :: Lens' BlogLiterately (Maybe String)
- blog :: Lens' BlogLiterately (Maybe String)
- user :: Lens' BlogLiterately (Maybe String)
- password :: Lens' BlogLiterately (Maybe String)
- title :: Lens' BlogLiterately (Maybe String)
- file :: Lens' BlogLiterately (Maybe String)
- format :: Lens' BlogLiterately (Maybe String)
- postid :: Lens' BlogLiterately (Maybe String)
- page :: Lens' BlogLiterately (Maybe Bool)
- publish :: Lens' BlogLiterately (Maybe Bool)
- htmlOnly :: Lens' BlogLiterately (Maybe Bool)
- citations :: Lens' BlogLiterately (Maybe Bool)
- xtra :: Lens' BlogLiterately [String]
- style' :: BlogLiterately -> String
- hsHighlight' :: BlogLiterately -> HsHighlight
- otherHighlight' :: BlogLiterately -> Bool
- litHaskell' :: BlogLiterately -> Bool
- toc' :: BlogLiterately -> Bool
- rawlatex' :: BlogLiterately -> Bool
- wplatex' :: BlogLiterately -> Bool
- math' :: BlogLiterately -> String
- ghci' :: BlogLiterately -> Bool
- uploadImages' :: BlogLiterately -> Bool
- blogid' :: BlogLiterately -> String
- profile' :: BlogLiterately -> String
- blog' :: BlogLiterately -> String
- user' :: BlogLiterately -> String
- password' :: BlogLiterately -> String
- title' :: BlogLiterately -> String
- file' :: BlogLiterately -> String
- format' :: BlogLiterately -> String
- postid' :: BlogLiterately -> String
- page' :: BlogLiterately -> Bool
- publish' :: BlogLiterately -> Bool
- htmlOnly' :: BlogLiterately -> Bool
- citations' :: BlogLiterately -> Bool
BlogLiterately options record
data BlogLiterately Source #
Configuration record (and command-line options) for BlogLiterately
.
Constructors
BlogLiterately | |
Fields
|
Instances
Data BlogLiterately Source # | |
Defined in Text.BlogLiterately.Options Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BlogLiterately -> c BlogLiterately gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BlogLiterately toConstr :: BlogLiterately -> Constr dataTypeOf :: BlogLiterately -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BlogLiterately) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BlogLiterately) gmapT :: (forall b. Data b => b -> b) -> BlogLiterately -> BlogLiterately gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BlogLiterately -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BlogLiterately -> r gmapQ :: (forall d. Data d => d -> u) -> BlogLiterately -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> BlogLiterately -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> BlogLiterately -> m BlogLiterately gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BlogLiterately -> m BlogLiterately gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BlogLiterately -> m BlogLiterately | |
Show BlogLiterately Source # | |
Defined in Text.BlogLiterately.Options Methods showsPrec :: Int -> BlogLiterately -> ShowS show :: BlogLiterately -> String showList :: [BlogLiterately] -> ShowS | |
Semigroup BlogLiterately Source # | |
Defined in Text.BlogLiterately.Options Methods (<>) :: BlogLiterately -> BlogLiterately -> BlogLiterately # sconcat :: NonEmpty BlogLiterately -> BlogLiterately stimes :: Integral b => b -> BlogLiterately -> BlogLiterately | |
Monoid BlogLiterately Source # | |
Defined in Text.BlogLiterately.Options Methods mappend :: BlogLiterately -> BlogLiterately -> BlogLiterately mconcat :: [BlogLiterately] -> BlogLiterately |
blOpts :: BlogLiterately Source #
Command-line configuration for use with cmdargs
.
Lenses
We derive lenses for all the BlogLiterately
fields using the
lens
library.
style :: Lens' BlogLiterately (Maybe String) Source #
hsHighlight :: Lens' BlogLiterately (Maybe HsHighlight) Source #
otherHighlight :: Lens' BlogLiterately (Maybe Bool) Source #
litHaskell :: Lens' BlogLiterately (Maybe Bool) Source #
toc :: Lens' BlogLiterately (Maybe Bool) Source #
rawlatex :: Lens' BlogLiterately (Maybe Bool) Source #
wplatex :: Lens' BlogLiterately (Maybe Bool) Source #
math :: Lens' BlogLiterately (Maybe String) Source #
ghci :: Lens' BlogLiterately (Maybe Bool) Source #
uploadImages :: Lens' BlogLiterately (Maybe Bool) Source #
categories :: Lens' BlogLiterately [String] Source #
tags :: Lens' BlogLiterately [String] Source #
blogid :: Lens' BlogLiterately (Maybe String) Source #
profile :: Lens' BlogLiterately (Maybe String) Source #
blog :: Lens' BlogLiterately (Maybe String) Source #
user :: Lens' BlogLiterately (Maybe String) Source #
password :: Lens' BlogLiterately (Maybe String) Source #
title :: Lens' BlogLiterately (Maybe String) Source #
file :: Lens' BlogLiterately (Maybe String) Source #
format :: Lens' BlogLiterately (Maybe String) Source #
postid :: Lens' BlogLiterately (Maybe String) Source #
page :: Lens' BlogLiterately (Maybe Bool) Source #
publish :: Lens' BlogLiterately (Maybe Bool) Source #
htmlOnly :: Lens' BlogLiterately (Maybe Bool) Source #
citations :: Lens' BlogLiterately (Maybe Bool) Source #
xtra :: Lens' BlogLiterately [String] Source #
Default accessors
Some convenient accessors that strip off the Maybe and return an appropriate default value.
style' :: BlogLiterately -> String Source #
otherHighlight' :: BlogLiterately -> Bool Source #
litHaskell' :: BlogLiterately -> Bool Source #
toc' :: BlogLiterately -> Bool Source #
rawlatex' :: BlogLiterately -> Bool Source #
wplatex' :: BlogLiterately -> Bool Source #
math' :: BlogLiterately -> String Source #
ghci' :: BlogLiterately -> Bool Source #
uploadImages' :: BlogLiterately -> Bool Source #
blogid' :: BlogLiterately -> String Source #
profile' :: BlogLiterately -> String Source #
blog' :: BlogLiterately -> String Source #
user' :: BlogLiterately -> String Source #
password' :: BlogLiterately -> String Source #
title' :: BlogLiterately -> String Source #
file' :: BlogLiterately -> String Source #
format' :: BlogLiterately -> String Source #
postid' :: BlogLiterately -> String Source #
page' :: BlogLiterately -> Bool Source #
publish' :: BlogLiterately -> Bool Source #
htmlOnly' :: BlogLiterately -> Bool Source #
citations' :: BlogLiterately -> Bool Source #