hakyllbars-1.0.1.0: A Hakyll compiler for Handlebars-like templates
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hakyllbars.Ast

Documentation

data Template Source #

Constructors

Template [Block] FilePath 

Instances

Instances details
ToJSON Template Source # 
Instance details

Defined in Hakyllbars.Ast

Generic Template Source # 
Instance details

Defined in Hakyllbars.Ast

Associated Types

type Rep Template :: Type -> Type #

Methods

from :: Template -> Rep Template x #

to :: Rep Template x -> Template #

Show Template Source # 
Instance details

Defined in Hakyllbars.Ast

Binary Template Source # 
Instance details

Defined in Hakyllbars.Ast

Methods

put :: Template -> Put #

get :: Get Template #

putList :: [Template] -> Put #

Writable Template Source # 
Instance details

Defined in Hakyllbars.Ast

Methods

write :: FilePath -> Item Template -> IO () #

type Rep Template Source # 
Instance details

Defined in Hakyllbars.Ast

type Rep Template = D1 ('MetaData "Template" "Hakyllbars.Ast" "hakyllbars-1.0.1.0-9aflCaSIsPK1VnByrNDbqL" 'False) (C1 ('MetaCons "Template" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))

data Block Source #

Instances

Instances details
ToJSON Block Source # 
Instance details

Defined in Hakyllbars.Ast

Generic Block Source # 
Instance details

Defined in Hakyllbars.Ast

Associated Types

type Rep Block :: Type -> Type #

Methods

from :: Block -> Rep Block x #

to :: Rep Block x -> Block #

Show Block Source # 
Instance details

Defined in Hakyllbars.Ast

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

Binary Block Source # 
Instance details

Defined in Hakyllbars.Ast

Methods

put :: Block -> Put #

get :: Get Block #

putList :: [Block] -> Put #

FromValue Block a Source # 
Instance details

Defined in Hakyllbars.Context

IntoValue Block a Source # 
Instance details

Defined in Hakyllbars.Context

type Rep Block Source # 
Instance details

Defined in Hakyllbars.Ast

type Rep Block = D1 ('MetaData "Block" "Hakyllbars.Ast" "hakyllbars-1.0.1.0-9aflCaSIsPK1VnByrNDbqL" 'False) ((C1 ('MetaCons "TextBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)) :+: C1 ('MetaCons "ExpressionBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))) :+: (C1 ('MetaCons "CommentBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)) :+: (C1 ('MetaCons "ChromeBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))) :+: C1 ('MetaCons "AltBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty ApplyBlock)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DefaultBlock)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))))))

data ApplyBlock Source #

Instances

Instances details
ToJSON ApplyBlock Source # 
Instance details

Defined in Hakyllbars.Ast

Generic ApplyBlock Source # 
Instance details

Defined in Hakyllbars.Ast

Associated Types

type Rep ApplyBlock :: Type -> Type #

Show ApplyBlock Source # 
Instance details

Defined in Hakyllbars.Ast

Binary ApplyBlock Source # 
Instance details

Defined in Hakyllbars.Ast

type Rep ApplyBlock Source # 
Instance details

Defined in Hakyllbars.Ast

data DefaultBlock Source #

Constructors

DefaultBlock [Block] SourcePos 

Instances

Instances details
ToJSON DefaultBlock Source # 
Instance details

Defined in Hakyllbars.Ast

Generic DefaultBlock Source # 
Instance details

Defined in Hakyllbars.Ast

Associated Types

type Rep DefaultBlock :: Type -> Type #

Show DefaultBlock Source # 
Instance details

Defined in Hakyllbars.Ast

Binary DefaultBlock Source # 
Instance details

Defined in Hakyllbars.Ast

type Rep DefaultBlock Source # 
Instance details

Defined in Hakyllbars.Ast

type Rep DefaultBlock = D1 ('MetaData "DefaultBlock" "Hakyllbars.Ast" "hakyllbars-1.0.1.0-9aflCaSIsPK1VnByrNDbqL" 'False) (C1 ('MetaCons "DefaultBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)))

data Expression Source #

Instances

Instances details
ToJSON Expression Source # 
Instance details

Defined in Hakyllbars.Ast

Generic Expression Source # 
Instance details

Defined in Hakyllbars.Ast

Associated Types

type Rep Expression :: Type -> Type #

Show Expression Source # 
Instance details

Defined in Hakyllbars.Ast

Binary Expression Source # 
Instance details

Defined in Hakyllbars.Ast

type Rep Expression Source # 
Instance details

Defined in Hakyllbars.Ast

type Rep Expression = D1 ('MetaData "Expression" "Hakyllbars.Ast" "hakyllbars-1.0.1.0-9aflCaSIsPK1VnByrNDbqL" 'False) (((C1 ('MetaCons "NameExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)) :+: C1 ('MetaCons "StringExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))) :+: (C1 ('MetaCons "IntExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)) :+: (C1 ('MetaCons "DoubleExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)) :+: C1 ('MetaCons "BoolExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))))) :+: ((C1 ('MetaCons "ApplyExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))) :+: C1 ('MetaCons "AccessExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)))) :+: (C1 ('MetaCons "FilterExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))) :+: (C1 ('MetaCons "ContextExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, Expression)]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos)) :+: C1 ('MetaCons "ListExpression" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Expression]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SourcePos))))))