packages feed

Bravo-0.1.0.1: Bravo.cabal

Name:          Bravo
Version:       0.1.0.1
Cabal-Version: >= 1.6
Build-Type:    Simple
License:       BSD3
License-File:  LICENSE
Copyright:     (C) 2010, Matthias Reisner
Author:        Matthias Reisner
Maintainer:    Matthias Reisner <matthias.reisner@googlemail.com>
Stability:     experimental
Homepage:      http://www.haskell.org/haskellwiki/Bravo
Synopsis:      Static text template generation library
Description:   Bravo is a text template library that provides parsing and generation of templates
               at compile time. Templates can be read from strings or files and for each
               a new record data type is created, allowing convenient access to all template
               variables in a type-safe manner. Since all templates are processed at compile time,
               no extra file access or error handling at runtime is necessary.
               .
               Additional features include the definition of multiple templates per file,
               conditional template evaluation, embedding of Haskell expressions and customized
               data type generation.
Category:      Text
Tested-With:   GHC == 6.10.4, GHC == 6.12.1

Extra-Source-Files: src/Examples/Example01.hs,
                    src/Examples/Example01.tpl,
                    src/Examples/Example02.hs,
                    src/Examples/Example02Templates.hs,
                    src/Examples/Example02.tpl

Flag base4
    Description: base >= 4.0
    Default: True

Flag newTH
    Description: This fixes incompatibilities between different template-haskell and
                 haskell-src-meta versions.
    Default: True

Library
    if flag(base4)
        Build-Depends:  base              >= 4       && < 5,
                        syb               >= 0.1.0.1 && < 0.2
    else
        Build-Depends:  base              >= 3.0.3   && < 4
    Build-Depends:      mtl               >= 1.1.0.2 && < 1.2,
                        haskell-src-exts  >= 1.2     && < 2,
                        parsec            >= 2.1.0.1 && < 3.0
    if flag(newTH)
        Build-Depends:  haskell-src-meta  >= 0.1     && < 0.2,
                        template-haskell  >= 2.4     && < 2.5
    else
        Build-Depends:  haskell-src-meta  >= 0.0.6   && < 0.1,
                        template-haskell  >= 2.3.0.1 && < 2.4

    Exposed-Modules:    Text.Bravo
    Other-Modules:      Text.Bravo.Parser
                        Text.Bravo.Syntax
                        Text.Bravo.Translate
                        Text.Bravo.Util
    HS-Source-Dirs:     src
    GHC-Options:        -O2 -Wall