ert-0.0.1.1: ert.cabal
-- Initial ert.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: ert
version: 0.0.1.1
synopsis: Easy Runtime Templates
description: EJS-like template engine for Haskell.
license: GPL-3
license-file: LICENSE
author: K.
maintainer: kayo@illumium.org
-- copyright:
homepage: https://bitbucket.org/kayo/ert
category: Text
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
source-repository head
type: git
location: https://bitbucket.org/kayo/ert.git
flag dev
description: Turn on development settings.
default: False
flag util
description: Compiles console utily for testing and rendering templates.
default: True
flag yaml
description: Compiles console utily with Yaml support.
default: True
flag regex
description: Adds support of regex matching in expressions.
default: True
library
exposed-modules: Data.EasyTpl
hs-source-dirs: library
other-modules: Data.EasyTpl.Types
Data.EasyTpl.Parser
Data.EasyTpl.Render
default-extensions: OverloadedStrings
CPP
-- other-extensions:
build-depends: base >=4.6 && <4.7
, bytestring >= 0.10.0.2 && < 0.11
, text >= 0.11.3.1 && < 0.12
, vector >= 0.10.0.1 && < 0.11
, unordered-containers >= 0.2.3.0 && < 0.3
, aeson >= 0.6.2.1 && < 0.7
, attoparsec >= 0.10.4.0 && < 0.11
, attoparsec-expr >= 0.1.1.1 && < 0.2
if flag(regex)
build-depends: regex-compat >= 0.95.1 && < 0.96
cpp-options: -DWITH_REGEX
if flag(dev)
ghc-options: -Wall -O0
cpp-options: -DWITH_DEBUG
else
ghc-options: -O2
default-language: Haskell2010
executable ert
if flag(util)
Buildable: True
main-is: Main.hs
default-extensions: OverloadedStrings
CPP
build-depends: base
, ert
, bytestring >= 0.10.0.2 && < 0.11
, aeson >= 0.6.2.1 && < 0.7
, attoparsec >= 0.10.4.0 && < 0.11
if flag(yaml)
build-depends: yaml >= 0.8.9.1 && < 0.9
cpp-options: -DWITH_YAML
if flag(dev)
ghc-options: -Wall -O0
cpp-options: -DWITH_DEBUG
else
ghc-options: -O2
default-language: Haskell2010