lighttpd-conf-0.4: Lighttpd configuration file tools.Source codeContentsIndex
Lighttpd.Conf.Syntax
Portabilitynon-portable (DeriveDataTypeable)
Stabilityunstable
MaintainerMatt Morrow <mjm2002@gmail.com>
Description
Synopsis
newtype Config = Config [Exp]
newtype Name = Name ByteString
mkName :: String -> Name
data QName = QName {
moduleName :: Name
baseName :: Name
}
mkQName :: String -> String -> QName
data Val
= SpliceV ByteString
| VarV QName
| StringV ByteString
| IntegerV Int
| BooleanV Enabled
| ArrayV [ArrayElem]
| ManyV [Val]
data ArrayElem = ArrayElem (Maybe Name) Val
data Enabled
= Enable
| Disable
data Include
= ValueI Val
| ShellI ByteString
data Exp
= CommentE ByteString
| GlobalCxtE [Exp]
| OptionE QName Val
| MergeE QName Val
| IncludeE Include
| CondE Cond [Exp] [CondElse]
data CondElse = CondElse Cond [Exp]
data Cond = Cond Field Op Pat
data Op
= Equal
| NotEqual
| Match
| NotMatch
data Pat
= StringP ByteString
| RegexP ByteString
data Field = Field Name ByteString
class ToVal a where
toVal :: a -> Val
Documentation
newtype Config Source
Constructors
Config [Exp]
show/hide Instances
newtype Name Source
Constructors
Name ByteString
show/hide Instances
mkName :: String -> NameSource
data QName Source
Constructors
QName
moduleName :: Name
baseName :: Name
show/hide Instances
mkQName :: String -> String -> QNameSource
data Val Source
Constructors
SpliceV ByteString
VarV QName
StringV ByteString
IntegerV Int
BooleanV Enabled
ArrayV [ArrayElem]
ManyV [Val]
show/hide Instances
data ArrayElem Source
Constructors
ArrayElem (Maybe Name) Val
show/hide Instances
data Enabled Source
Constructors
Enable
Disable
show/hide Instances
data Include Source
Constructors
ValueI Val
ShellI ByteString
show/hide Instances
data Exp Source
Constructors
CommentE ByteString
GlobalCxtE [Exp]
OptionE QName Val
MergeE QName Val
IncludeE Include
CondE Cond [Exp] [CondElse]
show/hide Instances
data CondElse Source
Constructors
CondElse Cond [Exp]
show/hide Instances
data Cond Source
 ghci> ppr $ Cond (HttpF Cookie) Match (RegexP "this.{,5}[=@#]?that$")
 $HTTP{"cookie"} =~ "this.{,5}[=@#]?that$"
Constructors
Cond Field Op Pat
show/hide Instances
data Op Source
Constructors
Equal
NotEqual
Match
NotMatch
show/hide Instances
data Pat Source
Constructors
StringP ByteString
RegexP ByteString
show/hide Instances
data Field Source
Constructors
Field Name ByteString
show/hide Instances
class ToVal a whereSource
Methods
toVal :: a -> ValSource
show/hide Instances
Produced by Haddock version 2.4.2