BlogLiterately-0.8.7: A tool for posting Haskelly articles to blogs
Copyright(c) 2008-2010 Robert Greayer 2012 Brent Yorgey
LicenseGPL (see LICENSE)
MaintainerBrent Yorgey <byorgey@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Text.BlogLiterately.Options

Description

Configuation and command-line options.

Synopsis

BlogLiterately options record

data BlogLiterately Source #

Configuration record (and command-line options) for BlogLiterately.

Constructors

BlogLiterately 

Fields

  • _style :: Maybe String

    Name of a style file

  • _hsHighlight :: Maybe HsHighlight

    Haskell highlighting mode

  • _otherHighlight :: Maybe Bool

    Use highlighting-kate for non-Haskell?

  • _litHaskell :: Maybe Bool

    Parse as literate Haskell?

  • _toc :: Maybe Bool

    Generate a table of contents?

  • _rawlatex :: Maybe Bool

    Pass LaTeX through unchanged?

  • _wplatex :: Maybe Bool

    Format LaTeX for WordPress?

  • _math :: Maybe String

    Indicate how to format math

  • _ghci :: Maybe Bool

    Automatically process ghci sessions?

  • _uploadImages :: Maybe Bool

    Automatically upload images?

  • _categories :: [String]

    Categories for the post

  • _tags :: [String]

    Tags for the post

  • _blogid :: Maybe String

    Blog-specific identifier (e.g. for blogging software handling multiple blogs)

  • _profile :: Maybe String

    Name of profile to use.

  • _blog :: Maybe String

    Blog xmlrpc URL

  • _user :: Maybe String

    Blog user name

  • _password :: Maybe String

    Blog password (omit to be interactively prompted)

  • _title :: Maybe String

    Post title

  • _file :: Maybe String

    File to post

  • _format :: Maybe String

    Format of the file (currently supported: markdown, rst)

  • _postid :: Maybe String

    ID of a post to update

  • _page :: Maybe Bool

    Create a "page" instead of a post

  • _publish :: Maybe Bool

    Should the post be published? (Otherwise it is uploaded as a draft.)

  • _htmlOnly :: Maybe Bool

    Don't upload anything; just output HTML to stdout.

  • _citations :: Maybe Bool

    Process citations? (default: true)

  • _xtra :: [String]

    Extension arguments, for use e.g. by custom transforms

Instances

Instances details
Data BlogLiterately Source # 
Instance details

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 # 
Instance details

Defined in Text.BlogLiterately.Options

Methods

showsPrec :: Int -> BlogLiterately -> ShowS

show :: BlogLiterately -> String

showList :: [BlogLiterately] -> ShowS

Semigroup BlogLiterately Source # 
Instance details

Defined in Text.BlogLiterately.Options

Monoid BlogLiterately Source # 
Instance details

Defined in Text.BlogLiterately.Options

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 #

toc :: Lens' BlogLiterately (Maybe Bool) Source #

math :: Lens' BlogLiterately (Maybe String) Source #

ghci :: Lens' BlogLiterately (Maybe Bool) 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 #

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 #

Default accessors

Some convenient accessors that strip off the Maybe and return an appropriate default value.